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

No activity report added on public-file rename #1032

Open
kiranparajuli589 opened this issue Nov 16, 2021 · 0 comments
Open

No activity report added on public-file rename #1032

kiranparajuli589 opened this issue Nov 16, 2021 · 0 comments
Labels

Comments

@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Nov 16, 2021

Steps to reproduce

  1. create user alice
  2. create a folder parent
  3. create a file /parent/textfile0.txt with some content
  4. create a public link share for parent folder with edit permission 15
  5. access the public link and rename textfile0.txt to textfile.txt as
this is how API request is made for public rename while running acceptance tests
  MOVE /core/remote.php/dav/public-files/ff3YhAk3yjo95GX//textfile0.txt HTTP/1.1
  Host: localhost
  User-Agent: GuzzleHttp/7
  X-Requested-With: XMLHttpRequest
  Destination: http://localhost/core/remote.php/dav/public-files/ff3YhAk3yjo95GX/textfile.txt

HTTP/1.1 201 Created
Date: Tue, 16 Nov 2021 10:45:28 GMT
Server: Apache/2.4.41 (Ubuntu)
Set-Cookie: oc7epvr9s2gv=8p9qb434k8losf9na6pftpu8ch; path=/core; HttpOnly; SameSite=Strict
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: oc_sessionPassphrase=cxKgAUHhA5%2BrRdzaWiOV%2Fu1JwMFwXrrhD9wmTq2HEtK5ItTXeaHKqPuxK3H7LWoxowtXxkTjiD3aOCqmDm1anOmHEhcibQaV8DM4XcC4yKpxrB9%2FXHYaJvSlO%2FRduqrm; path=/core; HttpOnly; SameSite=Strict
Content-Security-Policy: default-src 'none';
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Robots-Tag: none
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Content-Length: 0
Content-Type: text/html; charset=UTF-8

Expected behavior

  • public rename activity should be listed for textfile.txt for user alice
  • actually rename activity is added to the file while rename is done using the core webUI
    Screenshot from 2021-11-16 16-40-18

Actual behaviour

  • textfile0.txt is renamed to textfile.txt but no rename activity is generated

    see response
    PROPFIND /core/remote.php/webdav/parent/textfile.txt HTTP/1.1
    Host: localhost
    User-Agent: GuzzleHttp/7
    Authorization: Basic QWxpY2U6MTIzNDU2
    Content-Length: 139
    
    

    <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
    <d:prop>
    <oc:fileid />
    </d:prop>
    </d:propfind>HTTP/1.1 207 Multi-Status
    Date: Tue, 16 Nov 2021 10:45:29 GMT
    Server: Apache/2.4.41 (Ubuntu)
    Set-Cookie: oc7epvr9s2gv=iep6b87ktkt8j04q02r748v2vi; path=/core; HttpOnly; SameSite=Strict
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate
    Pragma: no-cache
    Set-Cookie: oc_sessionPassphrase=xpeQb4i%2F5LLD4iyq%2B0A5%2BwNuNdiI%2FGhnAeaJDtr289AHPBxjVe2cThcaJLEuppqO4%2FPTgV3al7mvMqZ6ZXsOFAFdjaaM%2F1eaXVtPSoLOjNH48yuK8v9ZAFWRR05bZnTE; path=/core; HttpOnly; SameSite=Strict
    Content-Security-Policy: default-src 'none';
    X-XSS-Protection: 0
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    X-Robots-Tag: none
    X-Download-Options: noopen
    X-Permitted-Cross-Domain-Policies: none
    Set-Cookie: oc7epvr9s2gv=ljlk4mp64mim5hlco703mpspb5; path=/core; HttpOnly; SameSite=Strict
    Set-Cookie: cookie_test=test; expires=Tue, 16-Nov-2021 11:45:29 GMT; Max-Age=3600
    Vary: Brief,Prefer
    DAV: 1, 3, extended-mkcol, 2
    Content-Length: 332
    Content-Type: application/xml; charset=utf-8

    <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns"><d:response><d:href>/core/remote.php/webdav/parent/textfile.txt</d:href><d:propstat><d:prop>oc:fileid2147484633</oc:fileid></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>

Server configuration

Operating system: Ubuntu

Web server: apache

Database: mysql

PHP version: 7.4

ownCloud version: latest

Where did you install ownCloud from: git

demonstrated at #1030

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

No branches or pull requests

2 participants