jhass / nextcloud-keeweb

Integrate Keeweb into Nextcloud
Other
416 stars 49 forks source link

Last-Modified HTTP header is absent #174

Open hdering opened 3 years ago

hdering commented 3 years ago

I got the error "Last-Modified HTTP header is absent" when I try to open a kdbx on nextcloud and in the path there is a "#".

Example: /MyFiles/#Keepass/db.kdbx

arnowelzel commented 3 years ago

The problem is, that the "#" character becomes part of the URL which is requested.

For example:

If the file is located in /MyFiles/#Keepass/db.kdbx the URL to this file is https://server.example/remote.php/webdav/MyFiles/#Keepass/db.kdbx. However - the server then only gets https://server.example/remote.php/webdav/MyFiles/ since the part after # is only used by the browser.

In fact, # must be replace with %23, then it should work. I'll see if I can provide a fix for this.

arnowelzel commented 3 years ago

After checking the situation - no this can't be fixed in Keeweb for Nextcloud. In fact Keeweb itself does not handle the URL properly.

Please report this to the upstream.

jimbolaya commented 3 years ago

I just upgraded from 18.0.12 to 19.0.7 and I don't have a # in the path. Is this still an issue for upstream?

The URL for the file is https://server.example/remote.php/webdav/Keepass/default.kdbx?requesttoken=<long string of stuff>

caco3 commented 2 years ago

I had the same issue when using an internal link s well as when using an public link. The solution was to go back into the Nextcloud Web UI Filebrowser and simply klick onto the keepass file. keeweb then openen and I only had to enter the DB password.