Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2066

BlockCompletePathModule returns wrong path in scope of internal servlet call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2
    • None

    Description

      BlockCompletePathModule uses this construct:
      public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException {
      return ObjectModelHelper.getRequest(objectModel).getContextPath() + blockPathModule.getAttribute(name, modeConf, objectModel);
      }

      However, when internal (service call or not) request is being made BlockCallHttpServletRequest becomes an object represnting current request but it has no meaningful representation of getContextPath method.

      Solution to this problem might be forwarding context path value from original request.

      Attachments

        Issue Links

          Activity

            People

              grek Grzegorz Kossakowski
              grek Grzegorz Kossakowski
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: