info.magnolia.module.blossom.annotation.Paragraph and Spring Security doesn't 
work together
-------------------------------------------------------------------------------------------

                 Key: BLOSSOM-88
                 URL: http://jira.magnolia-cms.com/browse/BLOSSOM-88
             Project: Magnolia Blossom Module
          Issue Type: Bug
    Affects Versions: 1.2.2
         Environment: OS X 10.7.3, JRE 1.6.0_31-b04-415-11M3635, Tomcat 6.0.32
            Reporter: Angel Gerdzhikov
            Assignee: Tobias Mattsson
            Priority: Major


If you have something like this:
{code:title=ContentSection.java|borderStyle=solid}
@Controller
@Paragraph("ContentSection")
@ParagraphDescription("Displays substructure of a section and enables creating 
and deleting pages and folders")
public class ContentSection
{
    @PreAuthorize("hasPermission('nodeUUID', 'uuid', 
T(info.magnolia.cms.security.Permission).WRITE)")
    @RequestMapping("/contentSection")
    public
        ModelAndView
        handleRequest(Content page, Content paragraph) throws 
RepositoryException
    {
        ...
    }
}
{code} 

and Spring Security is activated, the Blossom-Paragraph is not registered and 
can't be found. The reason is, that the Spring Security creates a CGLIB proxy 
and the Paragraph annotation is not inherited. The problem is in 
info.magnolia.module.blossom.paragraph.ParagraphExporter.postProcessHandler(). 
I guess I'll have the same problem when I use the Template annotation and 
Spring security. 

Is there any workaround to handle this issue?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to