Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-2628

No Url encoding for get parameters

    XMLWordPrintableJSON

Details

    Description

      Let's say I want to create a new category which ID is DVD+R
      Creation is ok through the admin interface, but whenever i want to access this category, the get parameter productCategoryId=.... of the url is wrong as it's not url encoded, so we have :
      https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD+R instead of
      https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR

      Both <@ofbizUrl> tag and menu widgets are not encoding get parameters.

      Way to correct :
      framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the makeLink function
      framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of simpleEncoder

      Beofre i do the fix, can a core developper let me know about possible side effects

      Attachments

        1. OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch
          2 kB
          Markus M. May
        2. OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch
          3 kB
          Sascha Schumann
        3. OFBIZ-2628-encoding-hidden-post-params.patch
          2 kB
          Wojciech Szymanowski
        4. OFBIZ-2628-encoding-request-redirect-params.patch
          3 kB
          Wojciech Szymanowski
        5. OFBIZ-2628-encoding-hidden-post-params (list forms).patch
          1 kB
          Wojciech Szymanowski
        6. OFBIZ-2628-encoding-hidden-post-params (list forms).patch
          1 kB
          Wojciech Szymanowski
        7. OFBIZ-2628-encoding-request-and-hidden-params.patch
          4 kB
          Sascha Schumann

        Activity

          People

            sascha Sascha Schumann
            patrick.antivackis Patrick Antivackis
            Votes:
            0 Vote for this issue
            Watchers:
            6 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