Skip to content

[Extension] thumbnails #10

Closed
Closed

Description

@butonic

while thumbnails should be a separate service it needs to respect the access permissions, otherwise it might leak information.

oCIS Extension based on #54

We can

  • use a content hash of the original file and the thumbnail size for the name of the thumbnail, render it on the fly, cache it on the server side and in the browser. If you don't already have the content hash you can only brute force thumbnails. Without authentication an attacker might be able to iterate over known hashes, which might leak compromising information.
  • optionally, to increase security, check if the user is logged in
  • optionally, to increase security even further, check file permissions and deny thumbnail access if the user has no access.

They can be implemented incrementally.

Activity

  1. added this to the milestone on Oct 15, 2019
  2. felixboehm commented on Nov 25, 2019

    @felixboehm
    Contributor

    PR is here cs3org/reva#298

  3. changed the title [-][reva] thumbnails[/-] [+][Extension] thumbnails[/+] on Nov 25, 2019
  4. PVince81 commented on Nov 27, 2019

    @PVince81
    Contributor

    On the front end side, the way I see it:

    • files app must support fetching file thumbnails for displaying in the current file list: Display previews web#276
    • optionally: we can provide a way to view bigger previews in the top of sidebar like we had in OC 10. Could be native or could be provided by an extension
    • later on: gallery view frontend extension that either provides another view of the file list (needs extension point to register multiple views for the file list => Allow providing alternative file list views web#2585)

    For finding out about preview URLs, multiple options:

    1. reuse the same URL / path we had in OC 10 (by convention, keeps compatibility)
    2. expose thumbnail URL in PROPFILE/filelist responses in all supported protocols (maybe MSGraph has this already?)
  5. DeepDiver1975 commented on Nov 27, 2019

    @DeepDiver1975
    Contributor

    MS Graph API already has a Thumbnail spec

  6. PVince81 commented on Nov 28, 2019

    @PVince81
    Contributor

    Had a chat with @TheOneRing to understand how the current implementation of the thumbnail server works. As far as I understood:

    • the currently implemented thumbnail server:
      • receives a Webdav URL including authentication token and parameters for the thumbnail.
      • sends a request to the Webdav URL with HEAD (to check etag) and GET to receive the file in question
      • the response body of the first requests will contain the generated thumbnail
      • caches the requested thumbnails in memory (for now), so the HEAD / etag check can save having to do the Webdav request to get the thumbnail
  7. butonic commented on Nov 28, 2019

    @butonic
    ContributorAuthor
  8. PVince81 commented on Nov 28, 2019

    @PVince81
    Contributor

    As far as I can see it would require the router to let extensions register to dynamic routes, not only route prefixes. Here for example: /drives/{drive-id}/items/{item-id}/thumbnails

  9. PVince81 commented on Nov 29, 2019

    @PVince81
    Contributor

    Further ideas:

    • the service could have the ability to pregenerate thumbnails when passing in a folder URL. it should then recursively traverse it and create thumbnails of all known file types in there with a standard/configured size, so they are pre-cached. This would be useful for gallery-like usage.
    • do the pregeneration in a background job, or "just in time" after uploading
  10. michaelstingl commented on Jan 20, 2020

    @michaelstingl
    Contributor

    Added support for modern media formats like HEIC & HEVC in #10 (comment)

  11. added a commit that references this issue on Sep 9, 2020
  12. added 6 commits that reference this issue on Sep 18, 2020
  13. wkloucek commented on Dec 18, 2020

    @wkloucek
    Contributor

    thumbnails extension is there. Some more to do here?

  14. michaelstingl commented on Dec 18, 2020

    @michaelstingl
    Contributor

    thumbnails extension is there. Some more to do here?

    Link to qa/test results? Are my items from #10 (comment) already covered? Otherwise we'd need new issues…

  15. refs commented on Jan 11, 2021

    @refs
    Contributor

    thumbnails extension is there. Some more to do here?

    Link to qa/test results? Are my items from #10 (comment) already covered? Otherwise we'd need new issues…

    I'd close this and take care of creating new issues addressing @michaelstingl comments 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions