Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-843

Use percent encoding, not url encoding, for HTTP requests

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • 32.2.2
    • 33.0.0
    • None
    • Core: Platform

    Description

      RFC 3986 mandates that only percent encoding is used for HTTP requests. Using a plus to encode a space is wrong: https://datatracker.ietf.org/doc/html/rfc3986

      Wrong encoding of status == open:

      ?query=status+%3D%3D+open 

      Correct encoding of status == open:

      ?query=status%20%3D%3D%20open 

      Task:

      Implement PercentCodec.

      Put a warning into the StringUtil.urlEncode javadoc.

      Replace StringUtil.urlEncode calls by PercentCodec calls.

      TestRail: Results

        Attachments

          Activity

            People

              julianladisch Julian Ladisch
              julianladisch Julian Ladisch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases