Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3531

Empty url mapping prefix causes infinite loop in DefaultRestoreViewSupport.handlePrefixMapping

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

        1. DefaultRestoreViewSupport.txt
          1.0 kB
          Paul Nicolucci

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              paul.nicolucci 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