-
Type:
Improvement
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Artifactory
-
Labels:None
-
Environment:
Artifactory v7.35.2 rev 73502900
-
Location:External
Problem
Users uploading files to a misspelled URI where the repository path is referencing a non-existing repository is greeted with a 405 response with an empty message.
This might make it hard to know that the URI is misspelled and instead hints at the request method being the part that is incorrect.
{ "errors" : [ { "status" : 405, "message" : "" } ] }
Improvement
Artifactory should be able to figure out that the repository does not exist and let the user know this. I would suggest that Artifactory responds with a populated message where it lets the user know that the URI is in reference of a non-existing repository.
{ "errors" : [ { "status" : 405, "message" : "Repository '<repo>' does not exist." } ] }
I'm OK with keeping the 405 to not change the behaviour. But since the URI is a reference to non-existing repository I think that 404 is the more correct status code.