I recently started working with attachments. I have a list of links to attachments. The list works with most filenames, but if I use a file with a comma, β,β, in the name i run into problems.
I have tried to remedy this by using encodeURIComponent(), but to no avail.
I believe this is an error in /lib/xp/portal/attachmentUrl().
The filename I have that is failing is: Prisliste for pakker, stykk- og partigods nasjonalt 01.12.2015.pdf.
If I modify it to Prisliste for pakker stykk- og partigods nasjonalt 01.12.2015.pdf it works.
The result from attachmentUrl(), that fails, is: /test/test-av-download/_/attachment/download/068c20be-a38d-461e-b8b8-17322093f61c:075de4f8ec998bd337ffc502b18d8d4291d004b4/Prisliste%20for%20pakker,%20stykk-%20og%20partigods%20nasjonalt%2001.12.2015.pdf
The filename without comma results in the following url that works: /test/test-av-download/_/attachment/download/8edfbb39-9152-4eb9-864e-561296816098:075de4f8ec998bd337ffc502b18d8d4291d004b4/Prisliste%20for%20pakker%20stykk-%20og%20partigods%20nasjonalt%2001.12.2015.pdf