<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error while uploading using WebServices API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191405#M144535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have custom extensions, and I am using the webservices API to upload docs. This all worked well with 2.9B. I have now deployed the 3.0B war file, and copied over my custom extensions, which load without errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have downloaded the relevant updated API to 3.0B to be up-to-date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error when trying to upload through the API (I have no problem when doing it manually, all with custom aspects and the like). The user is owner of the space where I am trying to upload and create my documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Error writing content to repository server&lt;BR /&gt;java.lang.RuntimeException: Error writing content to repository server&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:276)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:148)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at xx.xx.xx.print2file.Uploader.create(Uploader.java:113)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at xx.xx.xx.print2file.ArcParser.main(ArcParser.java:53)&lt;BR /&gt;Caused by: java.lang.RuntimeException: Content could not be uploaded because user does not have sufficient priveledges.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:244)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;… 3 more&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;After setting up the specific type and aspects, the code actually doing the uploading is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void createCML(CMLCreate id) throws RepositoryFault, java.rmi.RemoteException {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CML cml = new CML();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cml.setCreate(new CMLCreate[] {id});&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateResult[] f = WebServiceFactory.getRepositoryService().update(cml);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dumpUpdateResults(f);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't really know where to look for that one..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pointers greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 14:42:31 GMT</pubDate>
    <dc:creator>chapeaurouge</dc:creator>
    <dc:date>2008-10-07T14:42:31Z</dc:date>
    <item>
      <title>Error while uploading using WebServices API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191405#M144535</link>
      <description>Hello all,I have custom extensions, and I am using the webservices API to upload docs. This all worked well with 2.9B. I have now deployed the 3.0B war file, and copied over my custom extensions, which load without errors.I have downloaded the relevant updated API to 3.0B to be up-to-date.I get the</description>
      <pubDate>Tue, 07 Oct 2008 14:42:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191405#M144535</guid>
      <dc:creator>chapeaurouge</dc:creator>
      <dc:date>2008-10-07T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading using WebServices API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191406#M144536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Posting stuff here actually makes me think harder on my own so…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I recreated the user home space manually, its type is now&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;A href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess this can come into play..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 14:56:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191406#M144536</guid>
      <dc:creator>chapeaurouge</dc:creator>
      <dc:date>2008-10-07T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading using WebServices API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191407#M144537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apparently, new in Alfresco, when you create a system user, its node is of type content, and not system…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bug or feature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 15:33:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191407#M144537</guid>
      <dc:creator>chapeaurouge</dc:creator>
      <dc:date>2008-10-07T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading using WebServices API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191408#M144538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doesn't change the problem..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, the faulty code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String cd = ContentUtils.putContent(docAbsolutePath);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;before even calling the CML statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All folders and data currently in my alf_data/contentstore directory are well owned by tomcat, it's got rwx permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 15:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191408#M144538</guid>
      <dc:creator>chapeaurouge</dc:creator>
      <dc:date>2008-10-07T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error while uploading using WebServices API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191409#M144539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Opened bug ALFCOM-1995&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALFCOM-1995" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALFCOM-1995&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 16:15:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-uploading-using-webservices-api/m-p/191409#M144539</guid>
      <dc:creator>chapeaurouge</dc:creator>
      <dc:date>2008-10-07T16:15:53Z</dc:date>
    </item>
  </channel>
</rss>

