on 2022 Apr 04 10:16 AM
Hi everyone!
I'm facing an issue with the Attachment Service (https://help.sap.com/viewer/4c3d1c6b3d744f84aab4c273f979f430/1909.000/en-US/b821e557b83a1070e10000000a44147b.html).
I integrated the Attachment Service reuse component into a freestyle UI5 application and everything worked just fine, but after a few days, when I was presenting it to the customer, the download attachment function wasn't working anymore (other functionality still works, ex. upload). When I click on an attachment (which should start the download), I only get a new blank tab in the browser.
The console shows following error:
If I set a breakpoint there, I can see that the URL to which the redirect is being made is empty string (but why?). The batch request that reads the attachments contains the URLs to the data and the data stream ($value), and the application also shows the data about the existing attachments.
"media_src": "https://<host:port>/sap/opu/odata/sap/CV_ATTACHMENT_SRV/OriginalContentSet(Documenttype='GOS',Documentnumber='EXT47000000000360',Documentpart='',Documentversion='',ApplicationId='005056BB1F371EECAC805FA0031E76C6',FileId='005056BB1F371EECAC805FA0031E96C6')/$value"
If I try opening the URL directly (data or data stream) the request fails.
What I already analyzed and excluded:
I'm having a hard time understanding what happened and running out of ideas how to try to fix the issue. Any ideas would be appreciated!
Request clarification before answering.
So...turns out it was a combination of some (still no idea what exactly) system configurations and a stupid error on my side.
As I wrote in my comments earlier, the download over the direct link started to work after a few days again, but the download from the UI still didn't work. That second part was my fault.
I wanted to disable the functionality to add links as attachments in the UI, but also disabled the download functionality (facepalm)...
Setting the ENABLELINK to true solved the problem.
What is confusing is that this setting didn't disable the link itself...it still was clickable. It just didn't work. Maybe SAP will improve that and disable the filename as link with setting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
12 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.