Uploaded image for project: 'JBoss Enterprise Spec APIs'
  1. JBoss Enterprise Spec APIs
  2. JBEE-117

WebResourcePermission for negative permissions is doing incorrect implies (again)

XMLWordPrintable

      WebResourcePermission w1 = new WebResourcePermission("/", "!GET");
      WebResourcePermission w2 = new WebResourcePermission("/", "!GET,POST");
      System.err.println(">"+w1.implies(w2));
      System.err.println(">"+w2.implies(w1));
      

      Produces:

      false
      true
      

      It should be reversed

              rhn-cservice-bbaranow Bartosz Baranowski
              pgier@redhat.com Paul Gier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: