-
Notifications
You must be signed in to change notification settings - Fork 48
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
Compabilitiy with NC15 (was: NC13) and documentation about mimetype mapping for Keeweb #81
Conversation
Amazing, i follow your suggestion, and with the mimetype mapping the app works with Nextcloud 13. many thanks for your Solution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best solution so far to get this back working.
Works for me and is better than waiting for NC cahnges to include mime type selection by plugins.
Hey, first of all thank you! If we do this we should also drop the code at https://github.com/jhass/nextcloud-keeweb/blob/master/keeweb/appinfo/app.php#L61-L66 However a big pain point I still see here, and I wonder how the mentioned plugins do that, how is this communicated when installing a plugin from the appstore? |
Also https://docs.nextcloud.com/server/13/admin_manual/configuration_mimetypes/index.html suggests to just create the file with the additional mimetypes and some steps afterwards. |
@jhass Interesting - according to https://github.com/jhass/nextcloud-keeweb/blob/master/keeweb/appinfo/app.php#L61-L66 it looks like there is an API call in Nextcloud to register your own MIME type. But it does not work, or does it? |
No, it's not thoroughly affecting everything, it fails short on influencing the detector. |
@jhass About the problem "how to communicate the needed changes to make the app work": I also use Ownpad in my Nextcloud installation and this links to the documentation within the store description. The link "user documentation" is a direct link to the description in Github: https://github.com/otetard/ownpad/blob/master/README.md#mimetype-detection |
@reiner-text I created a separate issue (#82) for this, as this not only affects the documentatio but the code as well. |
Updated explanation how to add the custom MIME type for Keeweb.
Thank you, I'll take a look at this later this week, probably Friday. |
I really don't know the rules of properly making up a mimetype and it's certainly not my place to care for an IANA registration. Anyway, this discussion is pretty out of scope of this PR. |
The readme explains how to register the type the application expects. Changing this type is a entirely unrelated change. |
Let's do one thing at a time.
|
@jhass Maybe my comment on how another app handles mimetypes/file extensions could be of interest: |
Unfortunately I wasn't able to get Keeweb loading in Nextcloud 15. While the iframe-source URL shows and loads keeweb properly, it fails to embed, or rather show, within the iframe for some reason. There's no error message in the browser console, the JS seems to run, but the DOM inside the iframe doesn't update so the screen stays blank. I'm out of ideas for now. I pushed my WIP to https://github.com/jhass/nextcloud-keeweb/tree/nc15-wip @flower1024 @myxor since you guys seems to have invested most into getting this running on NC14, did that actually ever work out for you? Are your forks working for NC15 for you? None of your changes seemed to help for me unfortunately :/ |
What exactly did you change where? If you check my branch I did a clean very open CSP policy |
@jhass
and set it to true... maybe you have already fixed this in your master? but with the last release of your plugin the revert is neccessary |
Well, modifying the server code is certainly not a solution for the plugin. Tbh I thought my new CSP policy would have about the same effect though, obviously I missed something :( It's just weird that I get zero CSP violations logged in any browsers console. |
@jhass maybe we are misunderstooding each other.. |
It is not neccessary to modify code in the core. You can just add this to the CSP:
But for me this does not change anything. Keeweeb doesn't load if it is newer than 1.5 :-( |
Woah, good catch! I'll work on this tomorrow :) |
Merged as 26d5926 Thank you! |
Much nicer solution! Also nice that Keeweb will implement an option for the iframe issue 👍 |
As discussed in #67 this is the description how to add the mimetype mapping for Keeweb to work properly. I tested this in my own Nextcloud
1315 and it works fine (of course with an updatedappinfo/info.xml
to indicate Keeweb as compatible to NC1315).