<?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 Debugging ACEGI in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/debugging-acegi/m-p/84156#M56612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I find I am constantly hitting my head against the Acegi security features. More precisely, when I fail to set proper permissions on the service methods, I can't really find enough information to debug the problem. I would therefore be grateful for any tips about how to look into the Acegi/Alfresco machinery. I am familiar with the way it is set up, and I am working in the right file for setting permissions (I think): public-services-security-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to access a method where something is amiss (I assume), I get back a "org.alfresco.repo.security.permissions.AccessDeniedException: Access Denied.&amp;nbsp; You do not have the appropriate permissions to perform this operation." This exception contains no stack trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover, when I debug the application in Eclipse (by attaching to the Tomcat process), Eclipse cannot step into the Acegi-provided proxies stepping in in front of the service objects (naturally, since they are JVM proxies, and Eclipse doesn't know of which class they are).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried turning on (removing the comment from) the following line in log4j.properties: log4j.logger.org.alfresco.acegi=debug, but it still doesn't give me much information to go by.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would therefore appreciate any pointers you could share about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Is there any trick people use for debugging the Acegi system in Alfresco, i.e. see what kind of restriction is in effect, and why the current context does not fulfill it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How do you turn on proper logging of Acegi in Alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Any tips in general on how to handle this kind of problems?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 11:48:54 GMT</pubDate>
    <dc:creator>anwar</dc:creator>
    <dc:date>2007-04-16T11:48:54Z</dc:date>
    <item>
      <title>Debugging ACEGI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/debugging-acegi/m-p/84156#M56612</link>
      <description>I find I am constantly hitting my head against the Acegi security features. More precisely, when I fail to set proper permissions on the service methods, I can't really find enough information to debug the problem. I would therefore be grateful for any tips about how to look into the Acegi/Alfresco</description>
      <pubDate>Mon, 16 Apr 2007 11:48:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/debugging-acegi/m-p/84156#M56612</guid>
      <dc:creator>anwar</dc:creator>
      <dc:date>2007-04-16T11:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging ACEGI</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/debugging-acegi/m-p/84157#M56613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our use of acegi is very loose. We use it to store authentication information and to provide a framework. The authorization evaluation for method access is done in our own implementation wired into the ACEGI framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may have issues with methods that are not declared leading to the security context being lceared by acegi 0.8.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the internal evaluation of authorisation see the code in org.alfresco.repo.security.permissions.impl.acegi. In the end it all comes back to the PermissionsServiceImpl and hasPermission. This is where the evaluation takes place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 09:58:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/debugging-acegi/m-p/84157#M56613</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-05-01T09:58:54Z</dc:date>
    </item>
  </channel>
</rss>

