Symptom
Cannot download files when using AdditionalFiles and ContentFile API endpoints, "404 - File or directory not found" message as result of the API call.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
1. Using an external web service client create a bearer token
2. Run following API endpoint using GET method "/api/v1/admin/files/AdditionalFiles/[Filename]" without the "[]"
3. Error is thrown.
Cause
File name being used to get the file in API, what cause nested files to confuse the routing engine when determining what is API controller.
Resolution
API endpoint should be updated to "/api/v1/admin/files/AdditionalFiles?id=[FileName]" without the "[]".
See Also
API documentation will be updated to cover this scenario in future releases, below are the URLs for the documentation:
Keywords
Additional, content, file, CPQ, API, endpoint, not, found, 404 , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error