You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the plugin to consume a Jenkins instance, but some of the view names in there contain (out of my control) spaces. These result in URLs containing spaces (e.g. http://my.jenkins.instance.com/job/something/view/foo%20bar/api/json ). Such URLs fail due to a 404. I assume because the %20 get's url decoded and a request is done with a real space or something.
+1
I am using the URIBuilder to generate a URL which correctly encodes the parameters. If I pass that URL to the RestBuilder instance it reencodes everything.
So for instance, if I generate a URL like this using the URIBuilder:
Hi Graeme,
I am using the plugin to consume a Jenkins instance, but some of the view names in there contain (out of my control) spaces. These result in URLs containing spaces (e.g. http://my.jenkins.instance.com/job/something/view/foo%20bar/api/json ). Such URLs fail due to a 404. I assume because the %20 get's url decoded and a request is done with a real space or something.
Example code:
The text was updated successfully, but these errors were encountered: