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

make mimetype allow list configurable and add example config #2553

Merged
merged 3 commits into from
Oct 1, 2021

Conversation

wkloucek
Copy link
Contributor

@wkloucek wkloucek commented Sep 29, 2021

Description

Since cs3org/reva#2095 mime types must be on an allow list to be advertised on the /app/list endpoint. Additionally one can now add some more information about mime types and select a default application per mime type as requested in #2563.

This PR adds a basic default configuration and the possibility to configure the mime types with a config file.

Related Issue

Motivation and Context

How Has This Been Tested?

  • locally

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Sep 29, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@wkloucek wkloucek force-pushed the configure_default_mimetypes branch from 72d8b89 to 85267eb Compare September 29, 2021 16:48
@ownclouders
Copy link
Contributor

💥 Acceptance tests Core-API-Tests-ocis-storage-7 failed. The build is cancelled...

@wkloucek wkloucek force-pushed the configure_default_mimetypes branch from 0735e18 to 8fd705e Compare September 30, 2021 09:21
@ownclouders
Copy link
Contributor

💥 Acceptance tests Core-API-Tests-ocis-storage-5 failed. The build is cancelled...

@wkloucek wkloucek force-pushed the configure_default_mimetypes branch 2 times, most recently from 760334d to e94565f Compare September 30, 2021 13:04
@wkloucek wkloucek marked this pull request as ready for review September 30, 2021 13:04
@wkloucek wkloucek requested review from refs, C0rby and butonic September 30, 2021 13:04
Copy link
Member

@refs refs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just style changes, other than that LGTM

@@ -13,6 +13,7 @@ node_modules/
ocis/ocis
ocis/cmd/ocis/__debug_bin
ocis/cmd/ocis/config/
config/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 thanks

storage/pkg/command/gateway.go Show resolved Hide resolved
storage/pkg/command/gateway.go Outdated Show resolved Hide resolved
@wkloucek wkloucek force-pushed the configure_default_mimetypes branch from 561e977 to 66f430b Compare October 1, 2021 06:28
@wkloucek wkloucek merged commit 898f9d0 into master Oct 1, 2021
@delete-merged-branch delete-merged-branch bot deleted the configure_default_mimetypes branch October 1, 2021 07:04
ownclouders pushed a commit that referenced this pull request Oct 1, 2021
Merge: 80ae893 66f430b
Author: Willy Kloucek <[email protected]>
Date:   Fri Oct 1 09:04:39 2021 +0200

    Merge pull request #2553 from owncloud/configure_default_mimetypes

    make mimetype allow list configurable and add example config
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend Reva App provider to set one default per mimetype
3 participants