Shale
  1. Shale
  2. SHALE-266

More than one pattern of URL mappings for Faces Servlet ignored.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.0.4
    • Component/s: Remoting
    • Labels:
      None

      Description

      There was already a bug filed related to this issue:

      http://issues.apache.org/struts/browse/SHALE-178

      I have Shale version 1.03 and still this is a issue. I stepped throught the source code and came across a bug in org.apache.shale.remoting.impl.MappingImpl source. In method --> public String mapResourceId(FacesContext context, String resourceId) only the first pattern is considered.

        Issue Links

          Activity

          Hide
          Craig McClanahan added a comment -

          In addition to the earlier fix provided for SHALE-178, it is now possible to specify the zero relative index of the URL pattern to use when generating URLs for resource identifiers. Specify this with a context init parameter named "org.apache.shale.remoting.FACES_SERVLET_MAPPING_INDEX". If not specified, the default value is zero (meaning the first, or only, mapping will be used).

          Show
          Craig McClanahan added a comment - In addition to the earlier fix provided for SHALE-178 , it is now possible to specify the zero relative index of the URL pattern to use when generating URLs for resource identifiers. Specify this with a context init parameter named "org.apache.shale.remoting.FACES_SERVLET_MAPPING_INDEX". If not specified, the default value is zero (meaning the first, or only, mapping will be used).

            People

            • Assignee:
              Unassigned
              Reporter:
              Prashant Kadam
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development