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

gdrive.js does not load when installed in a custom app directory #2

Closed
simonbru opened this issue May 15, 2018 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@simonbru
Copy link

simonbru commented May 15, 2018

Nextcloud documentation recommends using a second, writable directory for apps installed by users. The Nextcloud docker image automatically configures the custom_apps for this purpose.
However in my case gdrive.js does not load when files_external_gdrive is installed in custom_apps. The server returns a weird 302 redirect for gdrive.js when opening /settings/admin/externalstorages in the browser, and Nextcloud logs the following:

Debug | files_external | Could not find resource file "/apps/files_external/js/../../files_external_gdrive/js/gdrive.js"

Copying files_external_gdrive into the apps folder temporarily works around the issue (which is fine for a one time setup).

I guess this is more an issue of files_external_gdrive being in a different apps folder than files_external. I noticed the exact same issue with files_external_dropbox.

Nextcloud version: 13.0.2 using the 13.0-apache docker image

@NastuzziSamy NastuzziSamy added the bug Something isn't working label May 15, 2018
@NastuzziSamy
Copy link
Owner

Hi again,

Could you try this https://github.com/NastuzziSamy/files_external_gdrive/tree/patch%232 and tell me if it resolves something ?

Thanks

@simonbru
Copy link
Author

Hi, this patch does not seem to fix the issue, I now get the following error:
Could not find resource file "/apps/files_external/js//files_external_gdrive/js/gdrive.js"

Thanks for your work and reactivity !

@simonbru
Copy link
Author

I found a solution that seems to work when the app is in any folder. However I don't know how correct or clean it is.
simonbru@4151bae

@NastuzziSamy
Copy link
Owner

Hi @simonbru, I think it cant be cleaner.

Do not hesitate to PR ;)

@simonbru
Copy link
Author

simonbru commented May 27, 2018

Done #11 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants