Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive page fires error when used in a display macro #59

Open
slauriere opened this issue Sep 6, 2022 · 0 comments
Open

Drive page fires error when used in a display macro #59

slauriere opened this issue Sep 6, 2022 · 0 comments

Comments

@slauriere
Copy link

slauriere commented Sep 6, 2022

Steps to reproduce

  • Create new Drive in page Sandbox.MyDrive.WebHome
  • Add some files to that Drive
  • Create page Sandbox.MyPage.WebHome with some content and including the created Drive in a display macro, for example:
= Lorem ipsum =

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Venenatis lectus magna fringilla urna. Vitae nunc sed velit dignissim sodales ut. Nunc mi ipsum faucibus vitae aliquet nec ullamcorper sit. Velit dignissim sodales ut eu. Mauris commodo quis imperdiet massa tincidunt nunc pulvinar sapien. Molestie a iaculis at erat pellentesque adipiscing commodo elit. Erat pellentesque adipiscing commodo elit at imperdiet dui accumsan.

{{display reference="Sandbox.MyDrive.WebHome"/}}

Actual result

The Drive is not displayed correctly in MyPage: it displays message "No result" with a loading widget and contains no files, see capture below:

filemanager

The browser JavaScript console contains the following error:

Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
oc@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:14:156
Yb@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:77:125
Yc/<@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:77:487
s@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:7:302
Yc@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:77:470
c@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:79:109
fd/f/<@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:112:276
$eval@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:126:84
$digest@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:123:195
$apply@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:126:362
l@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:81:422
O@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:86:52
wf/</w.onload@https://localhost:8080/xwiki/webjars/wiki%3Aabc/angularjs/1.3.8/angular.min.js?r=1:87:79

Environment

  • XWiki 14.4.3
  • File Manager Pro 2.5.4
@slauriere slauriere changed the title Page with DriveClass object fires error when used in a display macro Drive page fires error when used in a display macro Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant