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

Shares are not deleted when user is deleted #1258

Closed
jasson99 opened this issue Jun 12, 2020 · 15 comments
Closed

Shares are not deleted when user is deleted #1258

jasson99 opened this issue Jun 12, 2020 · 15 comments
Assignees
Labels
Category:Defect Existing functionality is not working as expected Interaction:Needs-help Asking some hints to engineering when the issue can't be reproduced QA:team

Comments

@jasson99
Copy link
Contributor

  1. Create users Brian and Carol
  2. User Carol creates folder Carol-folder3
  3. User Carol shares folder Carol-folder3 with user Brian with permissions all
  4. User Carol gets the information about the share created by him as
 curl -u Carol:123456 -X GET "http://localhost:9140/ocs/v1.php/apps/files_sharing/api/v1/shares" -H "OCS_APIREQUEST: true" | xmllint --format -     
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1180  100  1180    0     0  13720      0 --:--:-- --:--:-- --:--:-- 13720
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <element>
      <id>56f15e60-20af-4e69-9126-b06ee00bc577</id>
      <share_type>0</share_type>
      <uid_owner>Carol</uid_owner>
      <displayname_owner>User Carol</displayname_owner>
      <permissions>31</permissions>
      <stime>1591961104</stime>
      <parent/>
      <expiration/>
      <token/>
      <uid_file_owner>Carol</uid_file_owner>
      <displayname_file_owner>User Carol</displayname_file_owner>
      <additional_info_owner/>
      <additional_info_file_owner/>
      <state>0</state>
      <path>/Carol-folder3</path>
      <item_type>folder</item_type>
      <mimetype>httpd/unix-directory</mimetype>
      <storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id>
      <storage>0</storage>
      <item_source>91dc4158-06b3-4c22-aa3d-4043e9557dfd</item_source>
      <file_source>91dc4158-06b3-4c22-aa3d-4043e9557dfd</file_source>
      <file_parent/>
      <file_target>/Carol-folder3</file_target>
      <share_with>Brian</share_with>
      <share_with_displayname>User Brian</share_with_displayname>
      <share_with_additional_info/>
      <mail_send/>
    </element>
  </data>
</ocs>

  1. Delete users Carol and Brian

  2. Create user Alice and Brian

  3. User Alice creates file textfile3.txt

  4. User Alice shares file textfile3.txt with user Brian

  5. When user Brian gets the information about the share shared with him as:

curl -u Brian:12345 "http://localhost:9140/ocs/v1.php/apps/files_sharing/api/v1/shares?&shared_with_me=true" | xmllint --format -

  1. Then the response is:
curl: (52) Empty reply from server

Note: Here, when steps 6 to 9 are carried out first, without performing steps 1 to 5, then the response is as:

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <element>
      <id>c0352517-b546-4ef4-9b92-d8db236419be</id>
      <share_type>0</share_type>
      <uid_owner>Alice</uid_owner>
      <displayname_owner>User Alice</displayname_owner>
      <permissions>31</permissions>
      <stime>1591961963</stime>
      <parent/>
      <expiration/>
      <token/>
      <uid_file_owner>Alice</uid_file_owner>
      <displayname_file_owner>User Alice</displayname_file_owner>
      <additional_info_owner/>
      <additional_info_file_owner/>
      <state>1</state>
      <path>/textfile3.txt</path>
      <item_type>folder</item_type>
      <mimetype>httpd/unix-directory</mimetype>
      <storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id>
      <storage>0</storage>
      <item_source>099bc98b-a752-479f-8e3b-7f0fc395bb08</item_source>
      <file_source>099bc98b-a752-479f-8e3b-7f0fc395bb08</file_source>
      <file_parent/>
      <file_target>/textfile3.txt</file_target>
      <share_with>Brian</share_with>
      <share_with_displayname>User Brian</share_with_displayname>
      <share_with_additional_info/>
      <mail_send/>
    </element>
  </data>
</ocs>

@jasson99
Copy link
Contributor Author

The error I encountered on ocis-server for the above scenario is:

2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=12832280 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=87946 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=591547 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=19115550 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF core access token generated pkg=rhttp service=reva traceid=7885c8811a36966e8a780fb24a8c8644
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=74458 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 WRN home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/grpc/services/storageprovider/storageprovider.go:457 > file not found pkg=rgrpc service=reva traceid=7885c8811a36966e8a780fb24a8c8644
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=286401 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=1851294 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=77707 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=117625 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF unary code=OK end="12/Jun/2020:17:09:42 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:09:42 +0545" time_ns=784285 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/cs3.gateway.v1beta1.GatewayAPI/CreateContainer user-agent=grpc-go/1.26.0
2020-06-12T17:09:42+05:45 INF http end="12/Jun/2020:17:09:42 +0545" host=127.0.0.1 method=MKCOL pkg=rhttp proto=HTTP/1.1 service=reva size=0 start="12/Jun/2020:17:09:42 +0545" status=201 time_ns=24721141 traceid=7885c8811a36966e8a780fb24a8c8644 uri=/remote.php/dav/files/Carol/Carol-folder3 url=/remote.php/dav/files/Carol/Carol-folder3
2020-06-12T17:10:04+05:45 WRN core access token not set pkg=rhttp service=reva traceid=f79e40281f57cf07919b428d9e421863
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=15367 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Carol" > username:"Carol" mail:"carol@example.org" display_name:"User Carol"  authenticated pkg=rgrpc service=reva traceid=f79e40281f57cf07919b428d9e421863
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=10916876 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=72421 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=169355 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=12405416 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF core access token generated pkg=rhttp service=reva traceid=f79e40281f57cf07919b428d9e421863
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=7476 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/GetHome user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=24622530 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=25910622 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=67917 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 WRN error reading file id error="xattr.get /var/tmp/reva/data/Carol/files/Carol-folder3 user.oc.id: no data available" pkg=rgrpc service=reva traceid=f79e40281f57cf07919b428d9e421863
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=742696 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=1795060 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:49656 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=257362 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=56746 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=934914 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=3247848 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/CreateShare user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=20870539 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=21240851 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=21968604 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=22337566 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=22066535 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF unary code=OK end="12/Jun/2020:17:10:04 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:04 +0545" time_ns=22435911 traceid=f79e40281f57cf07919b428d9e421863 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:04+05:45 INF http end="12/Jun/2020:17:10:04 +0545" host=127.0.0.1 method=POST pkg=rhttp proto=HTTP/1.1 service=reva size=1161 start="12/Jun/2020:17:10:04 +0545" status=200 time_ns=112894081 traceid=f79e40281f57cf07919b428d9e421863 uri=/ocs/v1.php/apps/files_sharing/api/v1/shares url=/ocs/v1.php/apps/files_sharing/api/v1/shares
2020-06-12T17:10:30+05:45 WRN core access token not set pkg=rhttp service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=12741 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Carol" > username:"Carol" mail:"carol@example.org" display_name:"User Carol"  authenticated pkg=rgrpc service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=11357470 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=63305 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=187784 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=12824987 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF core access token generated pkg=rhttp service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:49656 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=60697 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListShares user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=430252 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/ListShares user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=20836456 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=21180532 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=20359896 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=20714073 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=20888294 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=21238682 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=78654 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=308442 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=60112 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=285462 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=1908097 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF listing public shares pkg=rgrpc service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF list public share pkg=rgrpc publicshareprovider=list service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:49716 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=1680905 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=3011417 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/ListPublicShares user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=83781 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 ERR error looking up fileid error="redigo: nil returned" id={"opaque_id":"8f61edcc-cd7e-4539-a871-25270e281cba"} pkg=rgrpc service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 ERR home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/grpc/services/storageprovider/storageprovider.go:459 > error stating file: id:<storage_id:"1284d238-aa92-42ce-bdc4-0b0000009162" opaque_id:"8f61edcc-cd7e-4539-a871-25270e281cba" >  error="ocfs: error resolving reference: redigo: nil returned" pkg=rgrpc service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=361760 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 ERR home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/grpc/services/gateway/storageprovider.go:851 > gateway: error getting path for ref error="gateway: grpc failed with code CODE_INTERNAL" pkg=rgrpc service=reva traceid=3c52b34ed2ec63be2193c30cc156220a
2020-06-12T17:10:30+05:45 INF unary code=OK end="12/Jun/2020:17:10:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:30 +0545" time_ns=1069618 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:10:30+05:45 INF http end="12/Jun/2020:17:10:30 +0545" host=127.0.0.1 method=GET pkg=rhttp proto=HTTP/1.1 service=reva size=1180 start="12/Jun/2020:17:10:30 +0545" status=200 time_ns=85694790 traceid=3c52b34ed2ec63be2193c30cc156220a uri=/ocs/v1.php/apps/files_sharing/api/v1/shares url=/ocs/v1.php/apps/files_sharing/api/v1/shares
2020-06-12T17:10:43+05:45 WRN core access token not set pkg=rhttp service=reva traceid=2107de359f7f0be6a171a184faa6d012
2020-06-12T17:10:43+05:45 INF unary code=OK end="12/Jun/2020:17:10:43 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:10:43 +0545" time_ns=23565 traceid=2107de359f7f0be6a171a184faa6d012 uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:43+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Carol" > username:"Carol" mail:"carol@example.org" display_name:"User Carol"  authenticated pkg=rgrpc service=reva traceid=2107de359f7f0be6a171a184faa6d012
2020-06-12T17:10:43+05:45 INF unary code=OK end="12/Jun/2020:17:10:43 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:10:43 +0545" time_ns=11535270 traceid=2107de359f7f0be6a171a184faa6d012 uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:43+05:45 INF unary code=OK end="12/Jun/2020:17:10:43 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:10:43 +0545" time_ns=68632 traceid=2107de359f7f0be6a171a184faa6d012 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:10:43+05:45 INF unary code=OK end="12/Jun/2020:17:10:43 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:10:43 +0545" time_ns=175384 traceid=2107de359f7f0be6a171a184faa6d012 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:10:43+05:45 INF unary code=OK end="12/Jun/2020:17:10:43 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:10:43 +0545" time_ns=13298365 traceid=2107de359f7f0be6a171a184faa6d012 uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:10:43+05:45 INF core access token generated pkg=rhttp service=reva traceid=2107de359f7f0be6a171a184faa6d012
2020-06-12T17:10:43+05:45 INF http end="12/Jun/2020:17:10:43 +0545" host=127.0.0.1 method=GET pkg=rhttp proto=HTTP/1.1 service=reva size=166 start="12/Jun/2020:17:10:43 +0545" status=200 time_ns=14865690 traceid=2107de359f7f0be6a171a184faa6d012 uri=/ocs/v1.php/apps/files_sharing/api/v1/shares/56f15e60-20af-4e69-9126-b06ee00bc577 url=/ocs/v1.php/apps/files_sharing/api/v1/shares/56f15e60-20af-4e69-9126-b06ee00bc577
2020-06-12T17:12:16+05:45 WRN core access token not set pkg=rhttp service=reva traceid=48f4af3799092f0fb5bd78e5daf0ff0b
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=18269 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Alice" > username:"Alice" mail:"alice@example.org" display_name:"User Alice"  authenticated pkg=rgrpc service=reva traceid=48f4af3799092f0fb5bd78e5daf0ff0b
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=11492769 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=66075 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=280726 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=13077752 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF core access token generated pkg=rhttp service=reva traceid=48f4af3799092f0fb5bd78e5daf0ff0b
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=69358 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 WRN home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/grpc/services/storageprovider/storageprovider.go:457 > file not found pkg=rgrpc service=reva traceid=48f4af3799092f0fb5bd78e5daf0ff0b
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=145576 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=785941 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=71721 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=118762 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateContainer user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF unary code=OK end="12/Jun/2020:17:12:16 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:16 +0545" time_ns=714090 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/cs3.gateway.v1beta1.GatewayAPI/CreateContainer user-agent=grpc-go/1.26.0
2020-06-12T17:12:16+05:45 INF http end="12/Jun/2020:17:12:16 +0545" host=127.0.0.1 method=MKCOL pkg=rhttp proto=HTTP/1.1 service=reva size=0 start="12/Jun/2020:17:12:16 +0545" status=201 time_ns=15689516 traceid=48f4af3799092f0fb5bd78e5daf0ff0b uri=/remote.php/dav/files/Alice/textfile3.txt url=/remote.php/dav/files/Alice/textfile3.txt
2020-06-12T17:12:30+05:45 WRN core access token not set pkg=rhttp service=reva traceid=3813e8a986079b06d9bcad98d3db4f28
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=14553 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Alice" > username:"Alice" mail:"alice@example.org" display_name:"User Alice"  authenticated pkg=rgrpc service=reva traceid=3813e8a986079b06d9bcad98d3db4f28
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=12011775 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=65784 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=202790 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=13489314 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF core access token generated pkg=rhttp service=reva traceid=3813e8a986079b06d9bcad98d3db4f28
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=5362 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/GetHome user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=21400989 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=22032169 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=65866 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 WRN error reading file id error="xattr.get /var/tmp/reva/data/Alice/files/textfile3.txt user.oc.id: no data available" pkg=rgrpc service=reva traceid=3813e8a986079b06d9bcad98d3db4f28
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=480296 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=1078055 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:49656 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=170618 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/CreateShare user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=54873 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=212771 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=1267765 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/CreateShare user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=22609834 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=23053340 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=22813381 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=27104614 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=20491803 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF unary code=OK end="12/Jun/2020:17:12:30 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:30 +0545" time_ns=20827739 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:30+05:45 INF http end="12/Jun/2020:17:12:30 +0545" host=127.0.0.1 method=POST pkg=rhttp proto=HTTP/1.1 service=reva size=1161 start="12/Jun/2020:17:12:30 +0545" status=200 time_ns=111822243 traceid=3813e8a986079b06d9bcad98d3db4f28 uri=/ocs/v1.php/apps/files_sharing/api/v1/shares url=/ocs/v1.php/apps/files_sharing/api/v1/shares
2020-06-12T17:12:43+05:45 WRN core access token not set pkg=rhttp service=reva traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53498 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=38000 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.auth.registry.v1beta1.RegistryAPI/GetAuthProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF user id:<idp:"https://localhost:9200" opaque_id:"Brian" > username:"Brian" mail:"brian@example.org" display_name:"User Brian"  authenticated pkg=rgrpc service=reva traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:38796 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=23344596 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.auth.provider.v1beta1.ProviderAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=115127 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:57696 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=439332 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.provider.v1beta1.ProviderAPI/CreateHome user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=28543952 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.gateway.v1beta1.GatewayAPI/Authenticate user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF core access token generated pkg=rhttp service=reva traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:49656 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=141610 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=1029346 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.gateway.v1beta1.GatewayAPI/ListReceivedShares user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=96989 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=549432 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53506 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=86186 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:50438 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=459321 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=2936712 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 ERR home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/grpc/services/userprovider/userprovider.go:100 > error authenticating user error="userprovidersvc: error getting user: error: not found: Carol" pkg=rgrpc service=reva traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:39732 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=19213330 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.identity.user.v1beta1.UserAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF unary code=OK end="12/Jun/2020:17:12:43 +0545" from=tcp://127.0.0.1:53496 pkg=rgrpc service=reva start="12/Jun/2020:17:12:43 +0545" time_ns=19775258 traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 uri=/cs3.gateway.v1beta1.GatewayAPI/GetUser user-agent=grpc-go/1.26.0
2020-06-12T17:12:43+05:45 INF error authenticating user code=CODE_INTERNAL pkg=rhttp service=reva traceid=1cbe3c3a6b181b8e6a0eca6aeaebbbb0 user_idp=https://localhost:9200 user_opaque_id=Carol
2020-06-12 17:12:43.365392 I | http: panic serving 127.0.0.1:51694: runtime error: invalid memory address or nil pointer dereference
goroutine 16 [running]:
net/http.(*conn).serve.func1(0xc0005b2000)
	/usr/local/go/src/net/http/server.go:1772 +0x139
panic(0x2e177c0, 0x4c45d60)
	/usr/local/go/src/runtime/panic.go:973 +0x3e3
github.com/cs3org/reva/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares.(*Handler).listSharesWithMe(0xc0025b4ce0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go:850 +0x4bb
github.com/cs3org/reva/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares.(*Handler).ServeHTTP(0xc0025b4ce0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go:78 +0x294
github.com/cs3org/reva/internal/http/services/owncloud/ocs/handlers/apps/sharing.(*Handler).ServeHTTP(0xc0002d1a80, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/handlers/apps/sharing/sharing.go:62 +0x236
github.com/cs3org/reva/internal/http/services/owncloud/ocs/handlers/apps.(*Handler).ServeHTTP(0xc0025b4cd0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/handlers/apps/apps.go:54 +0x3c8
github.com/cs3org/reva/internal/http/services/owncloud/ocs.(*V1Handler).Handler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/v1.go:58 +0x107
net/http.HandlerFunc.ServeHTTP(0xc00252c7f0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016a00)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/internal/http/services/owncloud/ocs.(*svc).Handler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016900)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/services/owncloud/ocs/ocs.go:100 +0x36a
net/http.HandlerFunc.ServeHTTP(0xc0025b4d20, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016900)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/pkg/rhttp.traceHandler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016800)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:302 +0x185
net/http.HandlerFunc.ServeHTTP(0xc0002bed80, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016800)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/pkg/rhttp.(*Server).getHandler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016800)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:232 +0x287
net/http.HandlerFunc.ServeHTTP(0xc0025b5220, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016800)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/pkg/rhttp.traceHandler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016700)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:302 +0x185
net/http.HandlerFunc.ServeHTTP(0xc0002beed0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016700)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/rs/cors.(*Cors).Handler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016700)
	/home/jasminebaral/go/pkg/mod/github.com/rs/cors@v1.7.0/cors.go:219 +0x1b8
net/http.HandlerFunc.ServeHTTP(0xc0002d1f80, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016700)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/pkg/rhttp.traceHandler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000016600)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:302 +0x185
net/http.HandlerFunc.ServeHTTP(0xc0002befc0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000016600)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/internal/http/interceptors/auth.New.func1.1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000017800)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/interceptors/auth/auth.go:246 +0xdc9
net/http.HandlerFunc.ServeHTTP(0xc0025a6120, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000017800)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/pkg/rhttp.traceHandler.func1(0x7ffb87c6baf0, 0xc0000d2810, 0xc000017700)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:302 +0x185
net/http.HandlerFunc.ServeHTTP(0xc0002beff0, 0x7ffb87c6baf0, 0xc0000d2810, 0xc000017700)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/internal/http/interceptors/log.loggingHandler.ServeHTTP(0x36b0740, 0xc0002beff0, 0x36f71c0, 0xc00049aa50, 0xc000017700)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/interceptors/log/log.go:57 +0x297
github.com/cs3org/reva/pkg/rhttp.traceHandler.func1(0x36f71c0, 0xc00049aa50, 0xc000017600)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/pkg/rhttp/rhttp.go:302 +0x185
net/http.HandlerFunc.ServeHTTP(0xc0002bf020, 0x36f71c0, 0xc00049aa50, 0xc000017600)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/cs3org/reva/internal/http/interceptors/appctx.handler.func1(0x36f71c0, 0xc00049aa50, 0xc000017500)
	/home/jasminebaral/go/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200529120551-4f2d9c85d3c9/internal/http/interceptors/appctx/appctx.go:52 +0x5e5
net/http.HandlerFunc.ServeHTTP(0xc0025c0000, 0x36f71c0, 0xc00049aa50, 0xc000017500)
	/usr/local/go/src/net/http/server.go:2012 +0x44
go.opencensus.io/plugin/ochttp.(*Handler).ServeHTTP(0xc0002c29b0, 0x36f71c0, 0xc00049aa50, 0xc000017300)
	/home/jasminebaral/go/pkg/mod/go.opencensus.io@v0.22.3/plugin/ochttp/server.go:92 +0x27e
net/http.serverHandler.ServeHTTP(0xc00259c000, 0x36f5100, 0xc0001ba2a0, 0xc000017300)
	/usr/local/go/src/net/http/server.go:2807 +0xa3
net/http.(*conn).serve(0xc0005b2000, 0x3700900, 0xc00255d3c0)
	/usr/local/go/src/net/http/server.go:1895 +0x86c
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:2933 +0x35c

@individual-it individual-it changed the title Empty reply from server Empty reply from server when user with an outgoing share got deleted Jun 13, 2020
@individual-it
Copy link
Member

The issue seems to be that when the user is deleted (in the case of the acceptance tests) from LDAP the shares are not deleted from shares.json

different issue but same reason:

  1. Alices shares with Brian
  2. both users get deleted (from LDAP)
  3. both users get recreated (in LDAP)
  4. Alices shares again same file with Brian

Response: <ocs><meta><status>error</status><statuscode>996</statuscode><message>could not stat share target</message></meta></ocs>

content of shares.json

{"state":{},"shares":[{"id":{"opaque_id":"bd49143f-aa31-4920-80a5-23fac931501d"},"resource_id":{"storage_id":"1284d238-aa92-42ce-bdc4-0b0000009154","opaque_id":"bb1a3a69-a348-4a82-a875-9db5327a1f37"},"permissions":{"permissions":{"add_grant":true,"get_path":true,"get_quota":true,"initiate_file_download":true,"initiate_file_upload":true,"list_grants":true,"list_container":true,"list_file_versions":true,"list_recycle":true,"remove_grant":true,"restore_file_version":true,"restore_recycle_item":true,"stat":true,"update_grant":true}},"grantee":{"type":1,"id":{"idp":"https://localhost:9200","opaque_id":"Brian"}},"owner":{"idp":"https://localhost:9200","opaque_id":"Alice"},"creator":{"idp":"https://localhost:9200","opaque_id":"Alice"},"ctime":{"seconds":1594184424,"nanos":309914923},"mtime":{"seconds":1594184424,"nanos":309914923}},{"id":{"opaque_id":"db40f7ac-a2c2-489c-b460-60218c97d487"},"resource_id":{"storage_id":"1284d238-aa92-42ce-bdc4-0b0000009154","opaque_id":"d4233092-ef84-4ae9-997f-e8655dda91cf"},"permissions":{"permissions":{"add_grant":true,"get_path":true,"get_quota":true,"initiate_file_download":true,"initiate_file_upload":true,"list_grants":true,"list_container":true,"list_file_versions":true,"list_recycle":true,"remove_grant":true,"restore_file_version":true,"restore_recycle_item":true,"stat":true,"update_grant":true}},"grantee":{"type":1,"id":{"idp":"https://localhost:9200","opaque_id":"Brian"}},"owner":{"idp":"https://localhost:9200","opaque_id":"Alice"},"creator":{"idp":"https://localhost:9200","opaque_id":"Alice"},"ctime":{"seconds":1594184465,"nanos":527537021},"mtime":{"seconds":1594184465,"nanos":527537021}}]}

how show ocis know that a user is deleted and recreated in LDAP?

For the tests its not enough to delete the json file, the redis server & the ocis-reva services have to be restarted as well

@PVince81
Copy link
Contributor

PVince81 commented Jul 8, 2020

I've raised https://github.com/owncloud/ocis-reva/issues/357 for the clean approach, proper deletion of shares upon user deletion. So far it feels like it won't be a quick and easy task.

Another workaround would be to delete shares.json, but that usually requires restarting ocis which we cannot do from the tests.
I wonder if we should add some API or command in reva to tell the system to "reset to factory settings" or something or "clear all caches" but in a clean way.

@butonic ideas ?

@individual-it
Copy link
Member

the workaround could be done by something similar to the testing app in oc10 here the issue for that #130
But I feel like there should be a real solution because deleting users from LDAP its also a real use-case

@phil-davis
Copy link
Contributor

And creating a new user that has the same "username" as one in the past does happen in real life - e.g. the staff member gets re-hired, the contractor comes back, the account was being deleted because somehow it was "messed up" and the admin creates it again a few minutes later. We do not want stale metadata (or actual files) of the previous incarnation of the user to suddenly reappear.

@PVince81
Copy link
Contributor

PVince81 commented Jul 8, 2020

From what I see in the code the share.json files are read only once during initialization.

I was thinking that maybe we could either have some periodic reload or checking if the file on disk still has the same mtime as before (or if it still exists), if not, reload before performing an operation. This would make it possible to delete/truncate the file concurrently. And even update it...

@PVince81
Copy link
Contributor

PVince81 commented Jul 8, 2020

Detecting changes to the file (with https://github.com/fsnotify/fsnotify) and then recreating it would be a nice workaround, as discussed with @butonic

It feels like it's not enough yet as we also need to cleanup the matching values in redis.

@PVince81
Copy link
Contributor

PVince81 commented Jul 8, 2020

POC here for the recreation of shares.json after deletion by the share manager: cs3org/reva#952

@PVince81
Copy link
Contributor

PVince81 commented Jul 8, 2020

from what I see the Redis code is in the OC storage, so this means the OC storage would also need to know that the user was deleted... or need some kind of trigger to clear its keys...

maybe for now we could clear the redis stuff at the end of every test ?

@individual-it individual-it changed the title Empty reply from server when user with an outgoing share got deleted Shares are not deleted when user is deleted Jul 14, 2020
@butonic butonic transferred this issue from owncloud/ocis-reva Jan 18, 2021
@refs refs added Category:Defect Existing functionality is not working as expected Interaction:Needs-help Asking some hints to engineering when the issue can't be reproduced labels Jan 18, 2021
@settings settings bot removed the p3-medium label Apr 7, 2021
@stale
Copy link

stale bot commented Jun 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status:Stale label Jun 6, 2021
@phil-davis
Copy link
Contributor

Issue #1226 looks to be the same thing.
IMO this problem has been fixed.
Maybe both issues can be closed?

@phil-davis
Copy link
Contributor

@jasson99 I think that this has been fixed. Do you know if it is still a problem?

@stale
Copy link

stale bot commented Oct 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status:Stale label Oct 5, 2021
@individual-it
Copy link
Member

assigned QA-team to double check if this is fixed, please close if its fixed

@stale stale bot removed the Status:Stale label Oct 5, 2021
@dpakach dpakach self-assigned this Nov 15, 2021
@dpakach
Copy link
Contributor

dpakach commented Nov 15, 2021

The issue has been fixed so closing.

@dpakach dpakach closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Defect Existing functionality is not working as expected Interaction:Needs-help Asking some hints to engineering when the issue can't be reproduced QA:team
Projects
None yet
Development

No branches or pull requests

6 participants