Search code examples
artifactory

webinterface: Get Bad Request when clicking "URL to file:"


if I use the webinterface to download a file via the "URL to file" link I get an error saying "HTTP Status 400 – Bad Request" (in JSON Format).

Tried Firefox and Chrome. Artifactory is 7.25.7 on Ubuntu 18.

Anyone an idea?

Best Regards Sven


Solution

  • Try adding "org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true" to your app/artifactory/tomcat/conf/catalina.properties file and then restart artifactory. I've got the exact same issue right now on version 7.23.3. Apparently there is a bug that the slash encoding is not getting set for some reason. Everything works fine except for downloading via the GUI, and pulling down NPM scoped packages. I've had a ticket open with jfrog about this for a while now. There is a setting you should be able to put in your yaml file, but that unfortunately doesn't work either. Hopefully they can sort this out as its a step you have to remember to do post upgrade since the above change gets removed as part of that process.