Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10874

empty target-name in constant-permission-mapper is not allowed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.ER2
    • 7.1.0.DR18, 7.1.0.DR19
    • None
    • None
    • Hide

      <permission class-name="javax.security.jacc.WebResourcePermission" target-name="" action="GET"/>

      Show
      <permission class-name="javax.security.jacc.WebResourcePermission" target-name="" action="GET"/>

      For some purposes there is need to construct permission with blank string as param (name/action) - for example WebResourcePermission.
      Such permission cannot be currently assigned using constant-permission-mapper because it requires at least one character to be not-null:

      If I try to assing permission with blank name (target-name="") (example in steps to reproduce), parse error is thrown:

      | > ParseError at [row,col]:[367,5]
      | > Message: "WFLYCTL0113: '' is an invalid value for parameter
      | >   target-name. Values must have a minimum length of 1 characters"
      

              jdenise@redhat.com Jean Francois Denise
              darran.lofthouse@redhat.com Darran Lofthouse
              Ondrej Lukas Ondrej Lukas (Inactive)
              Ondrej Lukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: