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

[OCM][Test Suite] Nextcloud/ownCloud cannot access share from oCIS #134

Open
MahdiBaghbani opened this issue Aug 13, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@MahdiBaghbani
Copy link
Member

MahdiBaghbani commented Aug 13, 2024

Everything between oCIS and Nextcloud works as expected except accessing the share from oCIS.

Trying to click on a share from oCIS to Nextcloud in Nextcloud UI leads to these logs.

oCIS:

2024-08-13T07:46:14Z INF access-log bytes=7947 duration=1.16117 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/ocm-provider/ proto=HTTP/1.1 remote-addr=172.20.0.4:56918 request-id=49c112facee3/Pog3fMACH0-000612 service=proxy status=200 traceid=de4297bdbd9ed1841a9cc1c4bc06c96b
2024-08-13T07:46:14Z INF access-log bytes=7947 duration=0.92403 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=PROPFIND path=/public.php/webdav/ proto=HTTP/1.1 remote-addr=172.20.0.4:56928 request-id=49c112facee3/Pog3fMACH0-000614 service=proxy status=200 traceid=e45d55dede2fd3c05fe88567d92a7011
2024-08-13T07:46:14Z INF access-log bytes=7947 duration=1.02239 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=PROPFIND path=/public.php/webdav/ proto=HTTP/1.1 remote-addr=172.20.0.4:56928 request-id=49c112facee3/Pog3fMACH0-000616 service=proxy status=200 traceid=3e2cfd78e04aa57c91aac3b4c3641171
2024-08-13T07:46:15Z INF access-log bytes=7947 duration=1.07183 line=github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/ocm-provider/ proto=HTTP/1.1 remote-addr=172.20.0.4:56934 request-id=49c112facee3/Pog3fMACH0-000618 service=proxy status=200 traceid=c12a71ed6dc81f5cd795d2bd9fe11948

Nextcloud:

::1 - - [13/Aug/2024:07:46:13 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.59 (Ubuntu) OpenSSL/3.0.2 (internal dummy connection)"
172.20.0.6 - - [13/Aug/2024:07:46:14 +0000] "GET /remote.php/webdav/invite-link-ocis-nc.txt HTTP/1.1" 404 12287 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
{"reqId":"wNqepFC11thAb4SizCMp","level":3,"time":"2024-08-13T07:46:14+00:00","remoteAddr":"172.20.0.6","user":"marie","app":"PHP","method":"GET","url":"/remote.php/webdav/invite-link-ocis-nc.txt","message":"Undefined variable $response at /var/www/html/lib/private/Files/Storage/DAV.php#305","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"27.1.10.2","data":{"app":"PHP"}}
{"reqId":"wNqepFC11thAb4SizCMp","level":3,"time":"2024-08-13T07:46:14+00:00","remoteAddr":"172.20.0.6","user":"marie","app":"PHP","method":"GET","url":"/remote.php/webdav/invite-link-ocis-nc.txt","message":"Undefined variable $response at /var/www/html/lib/private/Files/Storage/DAV.php#305","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"27.1.10.2","data":{"app":"PHP"}}
172.20.0.6 - - [13/Aug/2024:07:46:15 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6378 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
172.20.0.6 - - [13/Aug/2024:07:46:15 +0000] "GET /remote.php/webdav/cron.php HTTP/1.1" 404 11967 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
172.20.0.6 - - [13/Aug/2024:07:46:16 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6378 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"

Nextcloud Json error prettified:

{
  "reqId": "wNqepFC11thAb4SizCMp",
  "level": 3,
  "time": "2024-08-13T07:46:14+00:00",
  "remoteAddr": "172.20.0.6",
  "user": "marie",
  "app": "PHP",
  "method": "GET",
  "url": "/remote.php/webdav/invite-link-ocis-nc.txt",
  "message": "Undefined variable $response at /var/www/html/lib/private/Files/Storage/DAV.php#305",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0",
  "version": "27.1.10.2",
  "data": {
    "app": "PHP"
  }
}

This line:
https://github.com/nextcloud/server/blob/f7e1218ad98ab77de36edb7bd3ad3124d6e78ba9/lib/private/Files/Storage/DAV.php#L305

Probably a bug in Nextcloud core code.

@MahdiBaghbani MahdiBaghbani added the bug Something isn't working label Aug 13, 2024
@MahdiBaghbani MahdiBaghbani self-assigned this Aug 13, 2024
@MahdiBaghbani MahdiBaghbani changed the title [OCM][Test Suite] Nextcloud cannot access share from oCIS [OCM][Test Suite] Nextcloud/ownCloud cannot access share from oCIS Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant