dcache
dcache copied to clipboard
No empty string aloud for "Authorization: Basic "
the rest Api call with an empty Basic authorization :
curl -v -k -L -H "Authorization: Basic " -H "Authorization: Bearer " --upload-file pom.xml "https://localhost:2881/tape/file.txt"
returns
LOGIN FAIL | in: LoginNamePrincipal[] | Origin[127.0.0.1] | out: LoginNamePrincipal[] | Origin[127.0.0.1] |
this should throw IllegalArgumentException after checking if the authData is an empty tring