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

Feedback at web backend for encrypted folders #43

Closed
benhartwich opened this issue Jan 16, 2018 · 15 comments
Closed

Feedback at web backend for encrypted folders #43

benhartwich opened this issue Jan 16, 2018 · 15 comments
Labels
bug Something isn't working needs info Not enough information provided

Comments

@benhartwich
Copy link

Hi,

would be great, if an user get a feedback when he / she clicks on an encrypted folder at nextcloud web backend. Could you please add any message?

At the chrome console there is a 403 error message, which should not appear:

Failed to load resource: the server responded with a status of 403 ()
client.js?v=a969e03c-0:421 Uncaught (in promise) TypeError: Cannot read property 'getElementsByTagNameNS' of null
    at Client._getSabreException (client.js?v=a969e03c-0:421)
    at client.js?v=a969e03c-0:485
    at <anonymous>

Regards,

@tobiasKaminsky
Copy link
Member

image

For me, with app master, I get a warning.

@schiessle is the newest app version released?

@schiessle
Copy link
Member

schiessle commented Jan 17, 2018

@tobiasKaminsky I think this should already be there in the previous release. But I just released a v1.0.3, this was on my todo anyway... Maybe you can also give it a try? Thanks!

@tobiasKaminsky
Copy link
Member

Yes, still works for me, although it is 1.0.2 and not 1.0.3...

@benhartwich
Copy link
Author

I´ve upgraded to 1.0.2 recently, but I can´t see the info message like you´ve shown at the screenshot. I´m using Nextcloud 13 RC1 on Debian 9.

@tobiasKaminsky
Copy link
Member

What do you see when clicking on it? Nothing?
Do you see the lock symbol for encrypted folders?

@benhartwich
Copy link
Author

1
2

@tobiasKaminsky
Copy link
Member

@schiessle entering an encrypted folder should not be possible?

@schiessle
Copy link
Member

don't know how this is possible. I can't reproduce it. The app is enabled, right? Do you see any error messages in the nextcloud.log?

@benhartwich
Copy link
Author

Of course, the app is enabled.

Nextcloud.log says:
{"reqId":"DbBWyJOjhEKDbXJtbnnI","level":4,"time":"2018-01-19T12:25:03+00:00","remoteAddr":"","user":"","app":"webdav","method":"PROPFIND","url":"\/remote.php\/webdav\/Encrypted","message":"Exception: {\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\Forbidden\",\"Message\":\"client not allowed to access end-to-end encrypted content\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/apps\\\/end_to_end_encryption\\\/lib\\\/Connector\\\/Sabre\\\/LockPlugin.php(124): OCA\\\\EndToEndEncryption\\\\Connector\\\\Sabre\\\\LockPlugin->checkUserAgent('Mozilla\\\/5.0 (Wi...', '\\\/Encrypted')\\n#1 [internal function]: OCA\\\\EndToEndEncryption\\\\Connector\\\\Sabre\\\\LockPlugin->checkLock(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#2 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(466): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#4 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(80): Sabre\\\\DAV\\\\Server->exec()\\n#6 \\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/remote.php(164): require_once('\\\/var\\\/kunden\\\/nex...')\\n#7 {main}\",\"File\":\"\\\/var\\\/kunden\\\/nextcloud-beta\\\/httpdocs\\\/nextcloud\\\/apps\\\/end_to_end_encryption\\\/lib\\\/Connector\\\/Sabre\\\/LockPlugin.php\",\"Line\":169}","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/63.0.3239.132 Safari\/537.36","version":"13.0.0.11"}

@vibora
Copy link

vibora commented Feb 7, 2018

Same thing is happening over here:
remoteAddr":"","user":"","app":"webdav","method":"PROPFIND","url":"\/remote.php\/webdav\/Encrypted","message":"Exception: {\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\Forbidden\",\"Message\":\"client not allowed to access end-to-end encrypted content\"

Used clients: iOS and direct access to server

By the way: Folders can not be encrypted using the Windows client, there's no context menu entry for encryption

@schiessle
Copy link
Member

@benhartwich is this still a issue with Nextclou13 and the latest verison of the server app (1.0.4)?

@schiessle schiessle added bug Something isn't working needs info Not enough information provided labels Mar 8, 2018
@benhartwich
Copy link
Author

@schiessle I´m testing it on my beta nextcloud 13.0 and I can access this folder shortly, then it jumps back to main view with the label "this operation is not allowed". Web console says:
core.js?v=318406ba-0:5729 PROPFIND https://beta.speibox.de/remote.php/webdav/Encrypted 403 ()

If this should be the default behaviour then this topic seems to be solved.

@tobiasKaminsky
Copy link
Member

Yes, this is the right feedback, as you can see in second post.

@lenusch
Copy link

lenusch commented Apr 10, 2018

I have several Errors with Federation Share (same NC) and Encryption turned on.
Files larger than 10MB wont be uploaded anymore, i have max upload .... Settings all to 8G

@tobiasKaminsky
Copy link
Member

@lenusch can you open up a new issue and describe on which shares it is not working?
Currently (as far as I know) there is no support for E2E and sharing at all.

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

No branches or pull requests

5 participants