otetard / ownpad

Ownpad is a Nextcloud application that allows to create and open Etherpad and Ethercalc documents.
GNU Affero General Public License v3.0
58 stars 24 forks source link

cant open etherpad, NC wants to download file #41

Closed hajika closed 6 years ago

hajika commented 6 years ago

What I have done yet: Installed the ownPad app. Then in admin/additional settings added the link to the etherpad and saved it.

But when I use the + to create a new pad, it will create a file. When I click that file, firefoc asks me to download it. Nothing happens like opening the pad or something like that.

Nextcloud 12, firefox on Xubuntu 16.04

geislern commented 6 years ago

Have you seen the remark about Mimetypes in the readme? I think this should fix exactly this (for files created after you edit the mimetypes.json acording to the instructions in the README).

spaetz commented 6 years ago

Hi there, I have copied the mimetype file added the 2 lines and rerun the occ file:scan but I still get a download offered, so in some cases this does not seen to be fixing the issue. Happy to help debug more in case it is needed.

geislern commented 6 years ago

Did you do this before creating a the file? If not try creating a new pad and opening that one.

spaetz commented 6 years ago

Yes, I restarted PHP and created a new pad afterwards and I still get a "pad file" offered for download.

clumsycat commented 6 years ago

same issue.

  1. nextcloud docker (wonderfall/nextcloud)

  2. etherpad docker (tvelocity/etherpad-lite)

  1. don't have mimetypemapping.json file in/config. I just copy one from (mimetypemapping.dist.json)
otetard commented 6 years ago

It seems to me that you missed something in your configuration.

Here is a first list of checks you can do:

Olivier;

clumsycat commented 6 years ago

@otetard I've checked all the steps you listed. It didn't work. And I got a wrong value data-mime="application/octet-stream".

PS: a mysql table oc_mimetypes is in nextcloud database, maybe i can insert some value to solve this question? Do you have some clue?

UPDATE: Ahh, I solve it! My fault is i put the mimetypemapping.json in wrong folder. The docker image has two config folders, one is /config, the other is /nextcloud/config. The latter is the right one.