"ee/git@gitlab.ow2.org:RocketChat/Rocket.Chat.git" did not exist on "11727b115923d6b508fb4d90442b244e99a77181"
XWIKI-11528: Office viewer fails if the page where the file is attached has a...
XWIKI-11528: Office viewer fails if the page where the file is attached has a special character in the name (whitespace) * Add only the office file name to the temporary file path if the resource is specified by an attachment reference, because the rest of the information (wiki/space/page) are already included in the path. * Use Base64 encoding for the resource reference when adding it to the path because it can contain special characters that are prohibited in the URL by some servlet containers even when they are URL-encoded.
Showing
- xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-viewer/src/main/java/org/xwiki/office/viewer/internal/DefaultOfficeResourceViewer.java 21 additions, 6 deletions...i/office/viewer/internal/DefaultOfficeResourceViewer.java
- xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-viewer/src/test/java/org/xwiki/office/viewer/internal/DefaultOfficeResourceViewerTest.java 3 additions, 3 deletions...fice/viewer/internal/DefaultOfficeResourceViewerTest.java
Please register or sign in to comment