MyFaces Core
  1. MyFaces Core
  2. MYFACES-3531

Empty url mapping prefix causes infinite loop in DefaultRestoreViewSupport.handlePrefixMapping

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.13
    • Fix Version/s: 2.0.14, 2.1.8
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      WebSphere Application Server 8 using MyFaces 2.0.13

      Description

      There is an infinite loop in DefaultRestoreViewSupport.handlePrefixMapping when there is an empty prefix. There was a similar issue reported in MyFaces-2891 however the algorithm was not
      updated in DefaultrestoreViewSupport.

      I've made the same fix in DefaultRestoreViewSupport as was made in DefaultViewHandlerSupport.handlePrefixMapping in MyFaces-2891.

      I'll attach a diff showing my changes. If a sample application is needed I can also provide that as it's a very simple application.

        Activity

        Hide
        Leonardo Uribe added a comment -

        Thanks to Paul Nicolucci for provide this patch

        Show
        Leonardo Uribe added a comment - Thanks to Paul Nicolucci for provide this patch
        Hide
        Paul Nicolucci added a comment -

        I've attached the DefaultRestoreViewSupport in the unified diff format.

        Show
        Paul Nicolucci added a comment - I've attached the DefaultRestoreViewSupport in the unified diff format.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Paul Nicolucci
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4h
              4h
              Remaining:
              Remaining Estimate - 4h
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development