https://issues.apache.org/bugzilla/show_bug.cgi?id=54068

          Priority: P2
            Bug ID: 54068
          Assignee: dev@tomcat.apache.org
           Summary: Web fragment sorting incorrectly detects circular
                    reference
          Severity: normal
    Classification: Unclassified
          Reporter: dennis.hom...@coremedia.com
          Hardware: PC
            Status: NEW
           Version: 7.0.32
         Component: Catalina
           Product: Tomcat 7

Created attachment 29522
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29522&action=edit
Test case implementation

The implementation of web fragment sorting with relative ordering constraints
may detect circular references, even though there is no such circle. 

This occurrence of this bug depends on the iteration order of the input map.

Consider the attached test case, defining a simple chain of three web
fragments:
* web fragments a, b, c, with relative constraints "b after a", "c after b".
* expected result: a, b, c
* actual result: 

Testcase: testOrderWebFragmentsRelative4 took 0,002 sec
        Caused an ERROR
Fragment relative ordering contains circular references. Thsi can be resolved
by using absolute ordering in web.xml.
java.lang.IllegalArgumentException: Fragment relative ordering contains
circular references. Thsi can be resolved by using absolute ordering in
web.xml.
        at
org.apache.catalina.deploy.WebXml.orderWebFragments(WebXml.java:2190)
        at
org.apache.catalina.deploy.TestWebXmlOrdering.testOrderWebFragmentsRelative4(TestWebXmlOrdering.java:268)

Workaround: use absolute ordering.

Details:
* Java 1.7.0_07

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to