Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11658

URISyntaxException in RestletProducer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.19.0
    • Fix Version/s: None
    • Component/s: camel-restlet
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      CAMEL-10392 introduced session/cookie handling for camel-restlet. However, this also introduced a bug where new URI is created from resourceUri before it's encoded.

      Before this change the uri would be safely encoded within restlet's Request constructor.

      See this code in RestletProducer:

                  String resourceUri = buildUri(endpoint, exchange);
                  URI uri = new URI(resourceUri); // <- causes exception on unencoded uri
                  request = new Request(endpoint.getRestletMethod(), resourceUri); // <- will encode uri
                  binding.populateRestletRequestFromExchange(request, exchange);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                koscejev Anton Koscejev
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m