Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2424

Application folder doesn't support "sub folders" (slash in path)

    Details

      Description

      I've set my tapstry servlet filter as :

      <filter-mapping>
      <filter-name>app</filter-name>
      <url-pattern>/path1/path2/*</url-pattern>
      </filter-mapping>

      And in the AppModule

      configuration.add(SymbolConstants.APPLICATION_FOLDER, "path1/path2");

      It works for Page Requests, but for Event requests it doesn't work.

      The probleme is here org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl#decodeComponentEventRequest

      The method used to remotve the application folder is not the same as the one used in org.apache.tapestry5.internal.services.ComponentEventLinkEncoderImpl#decodePageRenderRequest

      In decodeComponentEventRequest, the request path comparison is done between the applicationFolderPrefix and the substring until the first "/". In decodePageRenderRequest, the comparison is done otherwise.

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              bouil Nicolas Bouillon
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: