Skip to content

Migration breaks moving .htaccess file #164

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

Closed
lordratner opened this issue Dec 19, 2023 · 2 comments
Closed

Migration breaks moving .htaccess file #164

lordratner opened this issue Dec 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@lordratner
Copy link

Which version of integration_google are you using?

2.1.0

Which version of Nextcloud are you using?

28.0.1 RC1

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Firefox and Chrome

Describe the Bug

Migration dies when it encounters an .htaccess file from an archived website

[integration_google] Error: Google Drive import error: Unknown job failure. OCP\Files\ForbiddenException: Invalid path: files/Google Drive Import/Projects/Transfer/www/driver/html/.htaccess in /var/www/html/lib/private/Files/Storage/Local.php:510
Stack trace:
#0 /var/www/html/lib/private/Files/Storage/Local.php(288): OC\Files\Storage\Local->getSourcePath('files/Google Dr...')
#1 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(224): OC\Files\Storage\Local->file_exists('files/Google Dr...')
#2 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(224): OC\Files\Storage\Wrapper\Wrapper->file_exists('files/Google Dr...')
#3 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(224): OC\Files\Storage\Wrapper\Wrapper->file_exists('files/Google Dr...')
#4 /var/www/html/lib/private/Files/View.php(1330): OC\Files\Storage\Wrapper\Wrapper->file_exists('files/Google Dr...')
#5 /var/www/html/lib/private/Files/View.php(1374): OC\Files\View->getCacheEntry(Object(OCA\Files_Trashbin\Storage), 'files/Google Dr...', '/5d7b0bbd-6ac5-...')
#6 /var/www/html/lib/private/Files/Node/Root.php(203): OC\Files\View->getFileInfo('/5d7b0bbd-6ac5-...', false)
#7 /var/www/html/lib/private/Files/Node/Folder.php(135): OC\Files\Node\Root->get('/5d7b0bbd-6ac5-...')
#8 /var/www/html/lib/private/Files/Node/Folder.php(144): OC\Files\Node\Folder->get('.htaccess')
#9 /var/www/html/custom_apps/integration_google/lib/Service/GoogleDriveAPIService.php(330): OC\Files\Node\Folder->nodeExists('.htaccess')
#10 /var/www/html/custom_apps/integration_google/lib/Service/GoogleDriveAPIService.php(180): OCA\Google\Service\GoogleDriveAPIService->importFiles('5d7b0bbd-6ac5-3...', '/Google Drive I...', 500000000, 0, 0, Array)
#11 /var/www/html/custom_apps/integration_google/lib/BackgroundJob/ImportDriveJob.php(36): OCA\Google\Service\GoogleDriveAPIService->importDriveJob('5d7b0bbd-6ac5-3...')
#12 /var/www/html/lib/public/BackgroundJob/Job.php(81): OCA\Google\BackgroundJob\ImportDriveJob->run(Array)
#13 /var/www/html/lib/public/BackgroundJob/QueuedJob.php(57): OCP\BackgroundJob\Job->start(Object(OC\BackgroundJob\JobList))
#14 /var/www/html/lib/public/BackgroundJob/QueuedJob.php(47): OCP\BackgroundJob\QueuedJob->start(Object(OC\BackgroundJob\JobList))
#15 /var/www/html/cron.php(152): OCP\BackgroundJob\QueuedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#16 {main}
	from ? by 5d7b0bbd-6ac5-3780-a194-bb396ed5c6f9 at Dec 18, 2023, 9:43:56 PM

Expected Behavior

Either transfer the file or skip it.

Once I deleted the files from google (they had to be permanently deleted, not just in the trash), it worked.

To Reproduce

Try to migrate a drive with .htaccess files.

@lordratner lordratner added the bug Something isn't working label Dec 19, 2023
Copy link

Hello 👋

Thank you for taking the time to open this issue with integration_google. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
We try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until we get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue
Cheers 💙

@marcelklehr
Copy link
Member

Thank you for reporting this!

MarcelRobitaille pushed a commit to MarcelRobitaille/nextcloud_google_synchronization that referenced this issue Jun 29, 2024
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