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

URISyntaxException in RestletProducer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.19.0
    • None
    • camel-restlet
    • None
    • 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

              Unassigned Unassigned
              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