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

[stable12] Don't lie about preview types #7745

Merged
merged 2 commits into from
Jan 9, 2018
Merged

[stable12] Don't lie about preview types #7745

merged 2 commits into from
Jan 9, 2018

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Jan 8, 2018

Backport of #7692

For legacy reasons we stored all the previews with a png extention.
However we did not put png data in them all the time.

This caused the preview endpoints to always report that a preview is a
png file. Which was a lie.

Since we abstract away from the storage etc in the previewmanager. There
is no need anymore to store them as .png files and instead we can use
the actual file extention.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Throw proper exception if we can't get the mimetype for a preview. Catch
it later on so we can just return a not found for the preview.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke
Copy link
Member

Composer is fixed in #7747

@MorrisJobke MorrisJobke merged commit db6b9fd into stable12 Jan 9, 2018
@MorrisJobke MorrisJobke deleted the 7692_12 branch January 9, 2018 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants