xwikisas / application-googleapps

Google Apps Integration
0 stars 5 forks source link

Drive macro does not work on subwikis #54

Closed oanat closed 2 years ago

oanat commented 4 years ago

Steps to reproduce:

Result

Expected Result:

oanat commented 4 years ago

I also have tried to install the application on the subwiki as well. Next, I got an error from Google to add the proper redirect on the https://console.developers.google.com/. I added http://apps.xwiki.com:8080/xwiki/wiki/solutions/view/GoogleApps/OAuth and the inserting the drive macro on a wiki page looked good afterwords. However, when I tried to search for something in the drive, it displayed a different error:

SubwikiDriveError

Since the drive macro is a global macro, shouldn't it work without the need to install the app on the subwiki? Or this is really needed by the Google configuration?

AndreeaChi commented 2 years ago

Hi! Happy to say that the issue is not reproducing anymore with the Google Apps Integration Pro version 2.5.2.

  1. On a hosted XWiki instance 13.10.5, I have installed on farm Google Apps Integration Pro version 2.5.2.

  2. I have then configured the app on both the main wiki and the subwiki with the same credentials added in a project created on the Google Console, based on this documentation

  3. Then, on a Sandbox test page, I inserted the Google Drive Macro. Result of the insert in inline editing mode:

    image

    Result of the insert in WYSIWYG editing mode:

    image
  4. Finally, I have searched a document in the drive and there was a successful result:

    image

I then embedded one of the files from the shown list:

image