Skip to content

The "Upload file" button does not appear when trying to upload using the PDF Viewer Macro, if edit right is not given at wiki level to that group/user #44

@AndreeaChi

Description

@AndreeaChi

Steps to reproduce:

  1. On a 14.4.5/13.10.5/14.4.6 XWiki Jetty instance, install PDF Viewer Macro Pro, 2.4. I tested on both Firefox 106.0.5 & Chrome 107.0

  2. Add a standard user (Simple, default hidden pages setting) in a new Group - XWikiRegularUsersGroup

  3. At wiki level, set these rights for the XWikiAdminGroup and leave empty for all the other groups:

image

  1. At this point, give to the XWikiRegularUsersGroup on the Sandbox Page & Children level Edit rights.

  2. With a user from the XWikiRegularUsersGroup edit Sandbox TestPage1, with no pre-existing PDF attached to the page (no matter the editor type, inline or WYSIWYG) and add the PDF Viewer Macro.

  3. Click in the "Select or upload a PDF file" field

Expected result: a button with "Upload a file" under the "Select or upload a PDF file" field

Actual result: the "Upload a file" button does not appear

image

In the console, the Source map error: Error: request failed with status 404 Resource URL: null Source Map URL: suggestAttachments.min.js.map appears when inserting the PDF Viewer macro, then when first clicking in the Select or upload a PDF file field, the message JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim appears.

Also, giving View at wiki level for the group or any right, even Admin on the Sandbox Page & Children level to the group, does not help.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions