<?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 Re: access denied: but user has permission? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218608#M171738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have experienced the same problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get "Access Denied. You do not have the appropriate permissions to perform this operation."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my ActionHandler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void execute(ExecutionContext context) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; final ExecutionContext finalContext = context;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RunAsWork&amp;lt;Boolean&amp;gt; work = new RunAsWork&amp;lt;Boolean&amp;gt;() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Boolean doWork() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doTheWork(finalContext);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; AuthenticationUtil.runAs(work, "admin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment the "doTheWork" line, then I don't get the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doTheWork creates a file in the current space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- If I execute it in a space that contains a content rule (transform to PDF in the same space), then error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- If I execute it in a space that contains no content rule, then no error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the Java code is executed as admin, but the content rule is executed as the user. So if the rule writes something, an error comes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicolas Raoul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Mar 2010 05:15:22 GMT</pubDate>
    <dc:creator>nicolasraoul</dc:creator>
    <dc:date>2010-03-10T05:15:22Z</dc:date>
    <item>
      <title>access denied: but user has permission?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218604#M171734</link>
      <description>tried to add content, a .doc word file to a space but error returned, 'Access Denied.&amp;nbsp; You do not have the appropriate permissions to perform this operation.', but user is part of group that has permission to do this.&amp;nbsp; The group has Coordinator role for the space.What's going on? 17:57:56,410 User&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;</description>
      <pubDate>Sun, 28 Feb 2010 17:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218604#M171734</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-02-28T17:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: access denied: but user has permission?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218605#M171735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;invited user directly to space as Collaborator, still same error, cannot add content - access denied.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 17:07:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218605#M171735</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-02-28T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: access denied: but user has permission?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218606#M171736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi there…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; is there any progress?have u solved the problem????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 04:56:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218606#M171736</guid>
      <dc:creator>tejaswini</dc:creator>
      <dc:date>2010-03-02T04:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: access denied: but user has permission?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218607#M171737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have the error any more.&amp;nbsp; The error seemed to occur because the folder had a number of scripts firing off of it when content was added.&amp;nbsp; That seemed to be one of the causes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 17:39:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218607#M171737</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-03-04T17:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: access denied: but user has permission?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218608#M171738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have experienced the same problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get "Access Denied. You do not have the appropriate permissions to perform this operation."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my ActionHandler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void execute(ExecutionContext context) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; final ExecutionContext finalContext = context;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RunAsWork&amp;lt;Boolean&amp;gt; work = new RunAsWork&amp;lt;Boolean&amp;gt;() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Boolean doWork() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doTheWork(finalContext);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; AuthenticationUtil.runAs(work, "admin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment the "doTheWork" line, then I don't get the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doTheWork creates a file in the current space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- If I execute it in a space that contains a content rule (transform to PDF in the same space), then error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- If I execute it in a space that contains no content rule, then no error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the Java code is executed as admin, but the content rule is executed as the user. So if the rule writes something, an error comes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicolas Raoul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:15:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-denied-but-user-has-permission/m-p/218608#M171738</guid>
      <dc:creator>nicolasraoul</dc:creator>
      <dc:date>2010-03-10T05:15:22Z</dc:date>
    </item>
  </channel>
</rss>

