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

Add keeweb support #31622

Closed
theScrabi opened this issue Jun 3, 2018 · 6 comments
Closed

Add keeweb support #31622

theScrabi opened this issue Jun 3, 2018 · 6 comments

Comments

@theScrabi
Copy link

theScrabi commented Jun 3, 2018

I love keepass, but using the web version keeweb together with owncloud is not possible since oc 10.x broke compatibility with the nextcloud port of keeweb. However keeweb does not need to be an app within owncloud since it already comes along with webdav support. But trying to connect to the .kdbx file in owncloud using keeweb results in a 500 produced by and OPTIONS request.

Here is the stacktrace of my server:

#0 /var/www/owncloud/lib/public/Util.php(809): OCP\Util::getFullDomain('null')
#1 /var/www/owncloud/apps/dav/lib/Connector/Sabre/CorsPlugin.php(98): OCP\Util::isSameDomain('null', 'https://cloud.s...')
#2 /var/www/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php(407): OCA\DAV\Connector\Sabre\CorsPlugin->initialize(Object(OCA\DAV\Connector\Sabre\Server))
#3 /var/www/owncloud/apps/dav/lib/Server.php(101): Sabre\DAV\Server->addPlugin(Object(OCA\DAV\Connector\Sabre\CorsPlugin))
#4 /var/www/owncloud/apps/dav/appinfo/v2/remote.php(30): OCA\DAV\Server->__construct(Object(OC\AppFramework\Http\Request), '/owncloud/remot...')
#5 /var/www/owncloud/remote.php(165): require_once('/var/www/ownclo...')
#6 {main}
@theScrabi
Copy link
Author

Here is the anonymized json error:

{
  "reqId": "",
  "level": 3,
  "time": "1970-01-01T00:00:00+00:00",
  "remoteAddr": "xx.xx.xx.xx",
  "user": "--",
  "app": "remote",
  "method": "OPTIONS",
  "url": "/owncloud/remote.php/dav/files/user/",
  "message": "Exception: {\"Exception\":\"InvalidArgumentException\",\"Message\":\"Invalid url \\\"null\\\"\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/lib\\/public\\/Util.php(809): OCP\\\\Util::getFullDomain('null')\\n#1 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/Connector\\/Sabre\\/CorsPlugin.php(98): OCP\\\\Util::isSameDomain('null', 'https:\\/\\/cloud.s...')\\n#2 \\/var\\/www\\/owncloud\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(407): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\CorsPlugin->initialize(Object(OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Server))\\n#3 \\/var\\/www\\/owncloud\\/apps\\/dav\\/lib\\/Server.php(101): Sabre\\\\DAV\\\\Server->addPlugin(Object(OCA\\\\DAV\\\\Connector\\\\Sabre\\\\CorsPlugin))\\n#4 \\/var\\/www\\/owncloud\\/apps\\/dav\\/appinfo\\/v2\\/remote.php(30): OCA\\\\DAV\\\\Server->__construct(Object(OC\\\\AppFramework\\\\Http\\\\Request), '\\/owncloud\\/remot...')\\n#5 \\/var\\/www\\/owncloud\\/remote.php(165): require_once('\\/var\\/www\\/ownclo...')\\n#6 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/public\\/Util.php\",\"Line\":775}"
}

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #16309 (Add native support for One time password [OTP]), #30093 (Add support heic), #25373 (Add search support on the REPORT method), #27622 (Add capability indicating support of multiple link shares), and #11775 (Add support X-Forwarded-Proto).

@DeepDiver1975
Copy link
Member

The OPTIONS request as performed by keeweb holds a http header 'Origin' which holds the value 'null'

This is an invalid value - see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin

Looks like an issue in keeweb to me ...

@DeepDiver1975
Copy link
Member

see here - issue in keeweb - keeweb/keeweb#877

@theScrabi
Copy link
Author

I see. Thank you.

@lock
Copy link

lock bot commented Jul 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants