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

.whiteboard files are downloaded instead of opened #174

Open
GVLLIFESTYLE opened this issue Sep 19, 2024 · 10 comments
Open

.whiteboard files are downloaded instead of opened #174

GVLLIFESTYLE opened this issue Sep 19, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@GVLLIFESTYLE
Copy link

GVLLIFESTYLE commented Sep 19, 2024

1
I have installed whiteboard 1.0.2 and run it in within a docker-container and apache reverse proxy.
My nextcloud (version 30) runs at https://www.mydomain/nextcloud.
The configuration seems fine, as the app configuration page of whiteboard shows all green and successful.
If I create a new whiteboard, my instance is starting to download it instead of opening it in whiteboard.
In my ./config/mimetypealiases.json I cannot fine the .whiteboard extension even after installing whiteboard 1.0.2.
What could be the issue?

The nextcloud logs show no issues.

@juliushaertl juliushaertl added the bug Something isn't working label Sep 19, 2024
@architectonio
Copy link

On my NextCloud Instance (29.0.7 + Whiteboard 1.0.2), I notice exactly the same behavior.
As soon as the file is created it is immediately downloaded and by clicking on it, it is downloaded again.....and again

@ralfi
Copy link

ralfi commented Sep 19, 2024

Please read the Known Issues section from the README file. It helps me to solve this behavior.

@architectonio
Copy link

Please read the Known Issues section from the README file. It helps me to solve this behavior.

Thanks for replying.
I did follow the procedure
"sudo -u www-data php occ maintenance:mimetype:update-db"
Added mimetype "application/x-blender" to database
Added mimetype "image/bpg" to database
Added mimetype "video/dv" to database
Added mimetype "application/x-fictionbook+xml" to database
Added mimetype "image/heif" to database
Added mimetype "text/impress" to database
Added mimetype "text/x-ldif" to database
Added mimetype "video/mp2t" to database
Added mimetype "video/MP2T" to database
Added mimetype "application/x-iwork-numbers-sffnumbers" to database
Added mimetype "application/vnd.oasis.opendocument.formula" to database
Added mimetype "application/x-iwork-pages-sffpages" to database
Added mimetype "application/vnd.ms-powerpoint.template.macroEnabled.12" to database
Added mimetype "application/vnd.ms-powerpoint.addin.macroEnabled.12" to database
Added mimetype "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" to database
Added mimetype "text/reveal" to database
Added mimetype "application/rss+xml" to database
Added mimetype "application/sgf" to database
Added mimetype "image/sgi" to database
Added mimetype "application/vnd.ms-visio.drawing.macroEnabled.12" to database
Added mimetype "application/vnd.ms-visio.stencil.macroEnabled.12" to database
Added mimetype "application/vnd.ms-visio.template.macroEnabled.12" to database
Added mimetype "application/vnd.ms-visio.template" to database
Added mimetype "audio/webm" to database
Added mimetype "application/vnd.ms-excel.addin.macroEnabled.12" to database
Added mimetype "application/vnd.ms-excel.template.macroEnabled.12" to database
Added mimetype "model/mtl" to database
Added mimetype "application/x-compress" to database
Added 28 new mimetypes
Updated 0 filecache rows

and then
"sudo -u www-data php occ maintenance:mimetype:update-js"
mimetypelist.js is updated

Unfortunately the issue is persisting.

I guess the appropriate setting ".witheboard"in the DB and either mimetypealiases.json or mymetypemapping.json is missing or still wrong.
For instance in my mymetypemapping.json i have
"wbr": [
"application/whiteboard"
],
"whiteboard": [
"application/spacedeck"
],

I guess must remove the ### wbr part and replace### spacedeck with ### whiteboard....
"whiteboard": [
"application/whiteboard"
],

@ralfi
Copy link

ralfi commented Sep 19, 2024

Plesse remove everything with wbr and whiteboard from the files if exist, then do the occ commands. This works for me and exactly this tells you the README file.

@architectonio
Copy link

Hi @ralfi i just did it and now works!
Thanks everybody for helping.

@GVLLIFESTYLE
Copy link
Author

GVLLIFESTYLE commented Sep 20, 2024

I see the mistake in the readme. There is written

If the integration_whiteboard app was previously installed there might be a leftover non-standard mimetype configured. In this case opening the whiteboard may fail and a file is downloaded instead. Make sure to remove any entry in config/mimetypealiases.json mentioning whiteboard and run occ maintenance:mimetype:update-db and occ maintenance:mimetype:update-js.

But the main file I had to change was mimetypemapping.json . Now it does not download the files anymore.

Now I got another error though:

image

image

@kinimodmeyer
Copy link

Plesse remove everything with wbr and whiteboard from the files if exist, then do the occ commands. This works for me and exactly this tells you the README file.

This seems not to make the trick for everybody. In my case i still have the mentioned issue above.
mimetypealiases.json & mimetypemapping.json have no whiteboard reference.

@leo-333
Copy link

leo-333 commented Sep 26, 2024

Yes i have also the same behaviour. I have nextcloud 30 with php8.2-fpm installed. The apache2 server is configured like the documentation says. I have tried the latest build from the whiteboard-server and i get also the 404 error you mentionend @kinimodmeyer

@tetebueno
Copy link

tetebueno commented Oct 2, 2024

I was victim of this issue and the steps mentioned on the README page didn't work for me. What did work was the following:

  • Add the following entry to resources/config/mimetypealiases.dist.json (check the ending comma if it's not the last entry):
  "application/vnd.excalidraw+json": "whiteboard",
  • Add the following entry to resources/config/mimetypemapping.dist.json (check the ending comma if it's not the last entry):
  "whiteboard": ["application/vnd.excalidraw+json"],
  • Run the mentioned commands:
$ php occ maintenance:mimetype:update-db -vvv; php occ maintenance:mimetype:update-js -vvv

Hope it helps.

P.S.: awesome project. Thanks a lot.

@GVLLIFESTYLE
Copy link
Author

Thanks, but the issue with the 404 Error is still persisting also with version: 1.0.3

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

No branches or pull requests

7 participants