We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am attempting to delete a file and this is failing due to the slash in the file location.
d := map[string]string{ "filelocation": "nsconfig/ssl", } err = adc.DeleteResourceWithArgsMap(service.Systemfile.Type(), myfilename, d)
This returns a 400,
GET /nitro/v1/config/systemfile/myfilename?args=filelocation:nsconfig/ssl HTTP/1.1" 400 111 "-" "Go-http-client/1.1
As it doesn't find the item it doesn't try to delete.
The fix was to escape the string and ensure / is changed to %2F.
d := map[string]string{ "filelocation": url.PathEscape("nsconfig/ssl"), } err = adc.DeleteResourceWithArgsMap(service.Systemfile.Type(), myfilename, d)
GET /nitro/v1/config/systemfile/myfilename?args=filelocation:nsconfig%2Fssl HTTP/1.1" 200 221 "-" "Go-http-client/1.1 DELETE /nitro/v1/config/systemfile/myfilename?args=filelocation:nsconfig%2Fssl HTTP/1.1" 200 57 "-" "Go-http-client/1.1"
I'm assuming this will be the same issue for all query parameters and not specific to my use case.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I am attempting to delete a file and this is failing due to the slash in the file location.
This returns a 400,
As it doesn't find the item it doesn't try to delete.
The fix was to escape the string and ensure / is changed to %2F.
I'm assuming this will be the same issue for all query parameters and not specific to my use case.
The text was updated successfully, but these errors were encountered: