Skip to content

Commit

Permalink
Restructure discovery to have less apps
Browse files Browse the repository at this point in the history
The apps are not meant to represent MIME types of respective
single file extensions; rather, they represent application/module
that handles several extensions. So this groups extensions under
modules (writer/calc/...). This is required for some WOPI hosts
that whitelist discovery data on per-app base.

The old list of MIME-type-based apps is kept for compatibility
with existing integrations, until they are fixed to use new-style
discovery. Extensions are removed from legacy part, to avoid
duplicating actions.

This also hardcodes content types, to avoid repeated parsing of
discovery.xml.

lint-discovery.py is updated to process new-style information
(ignores legacy part).

Change-Id: Ib8d3518f00510cd0788314d8a9da9a286a52e0ba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99637
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Mike Kaganski <[email protected]>
  • Loading branch information
mikekaganski committed Aug 27, 2020
1 parent b6da68b commit 05dba7a
Show file tree
Hide file tree
Showing 3 changed files with 528 additions and 222 deletions.
Loading

0 comments on commit 05dba7a

Please sign in to comment.