Jetspeed 2
  1. Jetspeed 2
  2. JS2-692

Fragment ids are not automatically created, causing runtime errors

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • Component/s: PSML
    • Labels:
      None

      Description

      When deploying PSML pages, it is currently required to enter unique ids for each fragment in the PSML file.
      This is an error prone process. If a fragment id is not supplied, the following stacktrace occurs in the browser:

      java.lang.StackOverflowError
      java.util.regex.Pattern.atom(Pattern.java:1863)
      java.util.regex.Pattern.sequence(Pattern.java:1743)
      java.util.regex.Pattern.expr(Pattern.java:1687)
      java.util.regex.Pattern.compile(Pattern.java:1397)
      java.util.regex.Pattern.<init>(Pattern.java:1124)
      java.util.regex.Pattern.compile(Pattern.java:817)
      java.lang.String.split(String.java:2103)
      java.lang.String.split(String.java:2145)
      org.apache.jetspeed.util.Path.parsePathSegments(Path.java:116)
      org.apache.jetspeed.util.Path.<init>(Path.java:100)
      org.apache.jetspeed.util.Path.getSubPath(Path.java:253)
      org.apache.jetspeed.util.Path.getChild(Path.java:447)
      org.apache.jetspeed.decoration.BaseDecoration.getResource(BaseDecoration.java:125)
      org.apache.jetspeed.decoration.BaseDecoration.getStyleSheet(BaseDecoration.java:180)
      org.apache.jetspeed.decoration.PageTheme.setupFragmentDecorations(PageTheme.java:90)
      org.apache.jetspeed.decoration.PageTheme.setupFragmentDecorations(PageTheme.java:125)
      org.apache.jetspeed.decoration.PageTheme.setupFragmentDecorations(PageTheme.java:125)
      ...

      This bug fix will make fragment ids optional on deploy, and automatically create the ids if they do not exist.

      1. fs-page-manager.patch
        50 kB
        Dennis Dam
      2. castor-test-pages.patch
        6 kB
        Dennis Dam
      3. castor-page-manager.patch
        24 kB
        Dennis Dam

        Activity

        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        David Sean Taylor made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Dennis Dam made changes -
        Attachment fs-page-manager.patch [ 12360693 ]
        Dennis Dam made changes -
        Attachment castor-test-pages.patch [ 12360181 ]
        David Sean Taylor made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Dennis Dam made changes -
        Field Original Value New Value
        Attachment castor-page-manager.patch [ 12359996 ]
        David Sean Taylor created issue -

          People

          • Assignee:
            David Sean Taylor
            Reporter:
            David Sean Taylor
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development