My team, some of our users and I noticed something fairly strange yesterday.
We have a feature that allows users to quickly copy as HTML the content of a page (including images) and paste them anywhere. Since moving our images to Imgix however, we noticed that pasting that same HTML code in the body of a JIRA ticket (which used to work) makes it so it’s impossible to submit the issue. I get a 400 for the
/rest/internal/3/issue/TICKET-XX/description endpoint with the following response:
After a bit of debugging we found out that it’s mainly due to the presence of query parameters in the URL of the images present in the HTML that’s preventing us from submitting successfully. Removing the query parameters just works, but its not ideal. (those query params contain image transformation information like focal point, zoom, etc making it better to view the end image for the reader)
Here’s an example of the kind of image tag we usually have in our generated HTML output that we attempt to paste in JIRA:
<img src="https://images.tango.us/public/screenshot_12cfd689-30b7-435d-91aa-2518de7cc65b?crop=focalpoint&fit=crop&fm=png&fp-x=0.3888342351205116&fp-y=0.29858657243816256&fp-z=1.958762886597938&w=1200&ar=4066%3A2264" width="600" alt="Type test" />
We’re wondering if you have any hint on why this would happen / why would the presence of query param block the submission and how we could work around this.
Thanks in advance