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

Auto upload from Android app fails if e2e app is enabled #39

Closed
juliushaertl opened this issue Jan 11, 2018 · 7 comments
Closed

Auto upload from Android app fails if e2e app is enabled #39

juliushaertl opened this issue Jan 11, 2018 · 7 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@juliushaertl
Copy link
Member

The auto upload of images is failing if the folder doesn't exist. I'm not sure if that is more an android issue or an issue with the e2e encryption app, but since it works without the app being enabled, I open the issue here.

NC version: 13 beta4
End-to-End Encryption version: 1.0.1
Android app version: 2.0.0

Auto upload is configured to use subfolders for year/month.

@nextcloud/android Can you have a look as well?

Server error log

	Sabre\DAV\Exception\NotFound: File with name SofortUpload/Camera/2018 could not be located

    /var/www/nextcloud/apps-extra/end_to_end_encryption/lib/Connector/Sabre/LockPlugin.php - line 168: OCA\DAV\Connector\Sabre\ObjectTree->getNodeForPath('SofortUpload/Ca...')
    /var/www/nextcloud/apps-extra/end_to_end_encryption/lib/Connector/Sabre/LockPlugin.php - line 109: OCA\EndToEndEncryption\Connector\Sabre\LockPlugin->getNodeForPath('SofortUpload/Ca...')
    [internal function] OCA\EndToEndEncryption\Connector\Sabre\LockPlugin->checkLock(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit('beforeMethod', Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
    /var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
    {main}
@juliushaertl juliushaertl added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Jan 11, 2018
@tobiasKaminsky
Copy link
Member

Well..we (on android) create the folders if they do not exist.
But only on upload and locking is done before and this fails as the folder does not exist...

So the subfolders needs to be created before uploading and also being checked if they are / need to be encrypted...

@mario
Copy link

mario commented Jan 11, 2018

@tobiasKaminsky maybe create the structure on start of upload?

@tobiasKaminsky
Copy link
Member

We do not create them at all, but rely on webdav for doing this.
But yeah, I fear that we now have to do it by hand.

@schiessle am I allowed to create these folders without a lock? I suspect not to, or? So I would first have to find the encrypted root folder and then lock it, create the subfolders and then unlock? :S

@marinofaggiana
Copy link
Member

marinofaggiana commented Jan 11, 2018

it should be automatic on the server side for a subfolder of encrypted folder @schiessle

@tobiasKaminsky
Copy link
Member

As discussed with @schiessle, this is the way I am doing it now on android:
on entering a folder I check if this folder is a subfolder of any encrypted folder. So only the topmost folder needs to be set as encrypted and the whole tree beneath it is automatically encrypted.

@tobiasKaminsky
Copy link
Member

This should be now fixed with latest commit: nextcloud/android@e335056

We will release a RC1 soon. If it happens again, please create a new issue on android github.

@marinofaggiana
Copy link
Member

automatically ? client side ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants