nextcloud-keeweb icon indicating copy to clipboard operation
nextcloud-keeweb copied to clipboard

Nextcloud want's to download my file instead of open it

Open EgoLeX opened this issue 5 years ago • 18 comments

I got the above discribed problem. My *.kdbx file is waiting in Nextcloud to be opened but Nextcloud only want to open it.

Some ideas?

EgoLeX avatar Oct 28 '19 19:10 EgoLeX

Me2. Nextcloud: 16.0.5 [mimetype-detection]https://github.com/jhass/nextcloud-keeweb#mimetype-detection is set.

I do not have ssh access to the server. Is sudo -u www-data php occ files:scan --all mandatory for this function?

ithurtswhen-IP avatar Oct 31 '19 17:10 ithurtswhen-IP

I, too, ran into the very same issue with Nextcloud 17. However the solution was quite simple, as stated here: https://docs.nextcloud.com/server/17/admin_manual/configuration_mimetypes/index.html

When using docker based Nextcloud - like in my case - simply enter docker exec --user www-data -it $CONTAINER_ID php occ maintenance:mimetype:update-js

To obtain the $CONTAINER_ID, just do a docker ps | grep nextcloud_app. The first listed hex number is the docker container id of the running Nextcloud intance.

Hope this helps somebody

nub3 avatar Nov 11 '19 18:11 nub3

I am experiencing this after I successfully added the mimetype mapping and scanned my files.

Yesterday, clicking my kbdx file would open it in KeepWeb. Today, it attempts to trigger a file download...

GideonWolfe avatar Nov 12 '19 04:11 GideonWolfe

Yes, I've been experiencing that aswell. However, Clicking in the top-bars KeeWeb Icon, directly opens the file without hassle and let's me edit it. I guess, as long as you've only a single kdbx file, it works, even when the direct click on the kdbx stops

nub3 avatar Nov 14 '19 10:11 nub3

@nub3 really? When I click the Keeweb icon in my top bar it opens the menu where I must choose a file. There is no option to select files from Nextcloud, just my local computer. The only way I can actually access my database is by clicking the file.

GideonWolfe avatar Nov 14 '19 17:11 GideonWolfe

Here ist the solution: Yes, sudo -u www-data php occ files:scan --all is mandatory! So i installed OCCWEB app And run files:scan --all

Alo generate the File /config/mimetypemapping.json { "kdbx": ["application/x-kdbx"] }

ithurtswhen-IP avatar Nov 22 '19 21:11 ithurtswhen-IP

@EgoLeX does the problem persist with the newest, just released version? https://github.com/jhass/nextcloud-keeweb/releases
It changes and automates the way the file extension is registered.

SimJoSt avatar Jan 22 '20 03:01 SimJoSt

I have this problem with NC 18.06 Keeweb 0.6.2.

thenameiwantedwastaken avatar Jun 30 '20 09:06 thenameiwantedwastaken

Could you uninstall (e.g. disable and remove) and install NC-Keeweb and check if the issue persists? @thenameiwantedwastaken Since NC 18 the correct mimetype configuration should be already in the core package.

maurerle avatar Jul 06 '20 09:07 maurerle

I have disabled and removed KeeWeb, then re-installed it. The behaviour is the same -- clicking on a .kbdx file downloads it.

thenameiwantedwastaken avatar Jul 08 '20 00:07 thenameiwantedwastaken

i've the same problem, but the solution from ithurtswhen-IP works perfectly

Larsene avatar Sep 28 '20 06:09 Larsene

I have had no issues since the fix. @thenameiwantedwastaken @Larsene could you supply a system report via the "issue reporting" section in the admin interface. This would help the maintainers locate the issue.

SimJoSt avatar Jan 04 '21 01:01 SimJoSt

I've no more issue too

Larsene avatar Jan 07 '21 16:01 Larsene

@EgoLeX is this true for you as well? Please consider closing the issue :)

SimJoSt avatar Jan 17 '21 15:01 SimJoSt

At some point, the section about MIME type detected got removed: https://github.com/jhass/nextcloud-keeweb/pull/105

However - we still need a MIME type for *.kdbx to get Keeweb working. Is application/x-kdbx now officially part of Nextcloud?

Edit:

No, the MIME type is registered during installation based on the application info. Also see:

https://github.com/jhass/nextcloud-keeweb/commit/e1d8e1c7bfe5906525fa79783f3d37998ced3eca#diff-ad2c0f798e68fd8b04b08a91a1dfec278ac68ff71baefaf275d5814678a1cfb3

arnowelzel avatar Jan 17 '21 15:01 arnowelzel

@arnowelzel are you saying you are still having issues like the issue opener described? Does clicking a kdbx file not open the Keeweb app for you?

SimJoSt avatar Jan 28 '21 23:01 SimJoSt

@SimJoSt no - I never had these issues. I was just talking about what is needed to avoid that.

JFTR: I am one of the maintainers of this app ;-)

arnowelzel avatar Jan 29 '21 11:01 arnowelzel

@EgoLeX Can you please give a feedback, if this issue is fixed for you now? I can't reproduce this here. Opening kdbx files works fine here.

arnowelzel avatar Jan 29 '21 11:01 arnowelzel