Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Cannot view or download shared file in nrro scenario #277

Open
MahdiBaghbani opened this issue Apr 14, 2023 · 2 comments
Open

Cannot view or download shared file in nrro scenario #277

MahdiBaghbani opened this issue Apr 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MahdiBaghbani
Copy link
Member

MahdiBaghbani commented Apr 14, 2023

Steps to reproduce:

  1. use dev-stock in GitPod.
  2. init sciensemesh and start nrro testing.
  3. after adding Marie as a contact share welcome.txt for her.
  4. on oc2 accept the share, then click on the shared file.
  5. see the error.

Screenshot from 2023-04-14 14-17-05

{
  "reqId": "rM2HC6LQHqSk8ZIa4o5e",
  "level": 4,
  "time": "2023-04-14T10:53:30+00:00",
  "remoteAddr": "172.18.0.9",
  "user": "marie",
  "app": "webdav",
  "method": "GET",
  "url": "/remote.php/webdav/welcome%20(2).txt",
  "message": "Exception: Connection refused for URI https://nc1.docker/public.php/webdav/: {\"Exception\":\"GuzzleHttp\\\\Exception\\\\ConnectException\",\"Message\":\"Connection refused for URI https:\\/\\/nc1.docker\\/public.php\\/webdav\\/\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Handler\\/Proxy.php(48): GuzzleHttp\\\\Handler\\\\StreamHandler->__invoke()\\n#1 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/PrepareBodyMiddleware.php(35): GuzzleHttp\\\\Handler\\\\Proxy::GuzzleHttp\\\\Handler\\\\{closure}(*** sensitive parameters replaced ***)\\n#2 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Middleware.php(31): GuzzleHttp\\\\PrepareBodyMiddleware->__invoke()\\n#3 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/RedirectMiddleware.php(71): GuzzleHttp\\\\Middleware::GuzzleHttp\\\\{closure}(*** sensitive parameters replaced ***)\\n#4 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Middleware.php(63): GuzzleHttp\\\\RedirectMiddleware->__invoke()\\n#5 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/HandlerStack.php(75): GuzzleHttp\\\\Middleware::GuzzleHttp\\\\{closure}(*** sensitive parameters replaced ***)\\n#6 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Client.php(331): GuzzleHttp\\\\HandlerStack->__invoke()\\n#7 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Client.php(168): GuzzleHttp\\\\Client->transfer()\\n#8 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Client.php(187): GuzzleHttp\\\\Client->requestAsync()\\n#9 \\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/ClientTrait.php(44): GuzzleHttp\\\\Client->request()\\n#10 \\/var\\/www\\/html\\/lib\\/private\\/Http\\/Client\\/Client.php(184): GuzzleHttp\\\\Client->get()\\n#11 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/Storage\\/DAV.php(359): OC\\\\Http\\\\Client\\\\Client->get()\\n#12 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Wrapper.php(302): OC\\\\Files\\\\Storage\\\\DAV->fopen()\\n#13 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Availability.php(317): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->fopen()\\n#14 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Checksum.php(58): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->fopen()\\n#15 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/Storage\\/Wrapper\\/Wrapper.php(302): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Checksum->fopen()\\n#16 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/View.php(1223): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->fopen()\\n#17 \\/var\\/www\\/html\\/lib\\/private\\/Files\\/View.php(1070): OC\\\\Files\\\\View->basicOperation()\\n#18 \\/var\\/www\\/html\\/apps\\/dav\\/lib\\/Connector\\/Sabre\\/File.php(431): OC\\\\Files\\\\View->fopen()\\n#19 \\/var\\/www\\/html\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/CorePlugin.php(85): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->get()\\n#20 \\/var\\/www\\/html\\/lib\\/composer\\/sabre\\/event\\/lib\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpGet()\\n#21 \\/var\\/www\\/html\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#22 \\/var\\/www\\/html\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#23 \\/var\\/www\\/html\\/lib\\/composer\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(321): Sabre\\\\DAV\\\\Server->start()\\n#24 \\/var\\/www\\/html\\/apps\\/dav\\/appinfo\\/v1\\/webdav.php(67): Sabre\\\\DAV\\\\Server->exec()\\n#25 \\/var\\/www\\/html\\/remote.php(165): require_once('\\/var\\/www\\/html\\/a...')\\n#26 {main}\",\"File\":\"\\/var\\/www\\/html\\/lib\\/composer\\/guzzlehttp\\/guzzle\\/src\\/Handler\\/StreamHandler.php\",\"Line\":72}"
}

Notes:

  1. if you share welcome.txt from nc to oc, and oc has a file named welcome.txt in the same directory, your share will be named welcome (2).txt, when you click on the share from oc, it tries to access welcome (2).txt in nc which doesn't exist.
  2. above point is a bug itself, but it really doesn't matter, create a file with a different name in nc that doesn't have any same-name counterpart in oc, share it with oc, try to access it from oc, and you'll see the same webdav error.
  3. it works fine for folders.

it actually calls remote.php/welcome (2).txt

@MahdiBaghbani MahdiBaghbani added the bug Something isn't working label Apr 14, 2023
@michielbdejong
Copy link
Member

I opened an issue about this in owncloud/core a few months ago, I’ll link it
Maybe it should open remote.php instead of public.php?

@michielbdejong
Copy link
Member

It's owncloud/core#40594

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants