Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-2008

AuthorizationHelper not working with composite component expressions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.1
    • 4.5.4, 5.0.0-alpha-1, 5.0.0
    • Core
    • None

    Description

      When i create a composite component and have a secured method referenced with cc.attrs  

      the AuthorizationHelper fails to resolve the corresponding bean

      <cc:interface>
       <cc:attribute name="value" type="MyController"/>
      </cc:interface>
      <cc:implementation>
      <tc:button action="#{cc.attrs.value.approve}"/>
      </cc:implementation>
      
      class MyController {
      
        @RolesAllowed("admin")
        public void approve() {
        }
      }

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hnoeth Henning Nöth
            crusadah Carsten Dimmek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment