Skip to content

Blacklisted filenames like .htaccess & file.parts can be uploaded #1345

Closed

Description

@individual-it

curl 'http://localhost:9140/remote.php/webdav/home/.htaccess' -X PUT -d "mydata" -u user0:123456 -v works without any error

bug or feature?

Activity

  1. butonic commented on Jan 23, 2020

    @butonic
    Contributor

    this is a feature. ocis properly handles .htaccess because there is no php running inside apache that could get be influenced. File uploads are handled with dedicated data services that will make the file available to the storage provider when the upload is done. Atomicity depends on the implementation.

  2. individual-it commented on Jan 29, 2020

    @individual-it
    MemberAuthor

    what about files with .part ?

  3. PVince81 commented on Apr 30, 2020

    @PVince81
    Contributor

    in any case we need to have a way to mark those tests that are "skipped on OCIS" as "expected behavior on OCIS".

    reopening. let's close the ticket after the test is reenabled/adjusted

  4. PVince81 commented on May 5, 2020

    @PVince81
    Contributor

    I suspect that depending on the storage implementation, some file names or extensions could be blacklisted, for example when interfacing with another OC 10 instance through OCM.

    To me this mean that the storage provider needs to advertise what patterns are accepted and which aren't. Since this is a more complex topic that needs to be discussed at some point, let's keep these tests disabled for now.

  5. transferred this issue fromowncloud/ocis-revaon Jan 18, 2021
  6. changed the title [-]blacklisted filenames like .htaccess & file.parts can be uploaded[/-] [+]Blacklisted filenames like .htaccess & file.parts can be uploaded[/+] on Jan 19, 2021
  7. refs commented on Jan 19, 2021

    @refs
    Contributor

    I suspect that depending on the storage implementation, some file names or extensions could be blacklisted, for example when interfacing with another OC 10 instance through OCM.

    To me this mean that the storage provider needs to advertise what patterns are accepted and which aren't. Since this is a more complex topic that needs to be discussed at some point, let's keep these tests disabled for now.

    cc @butonic @micbar this seems like a real concern to keep an eye on. Will move it to its own issue so it doesn't get lost in the context of this one.

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

Metadata

Metadata

Assignees

No one assigned

    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