{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/7181","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/7181/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/7181/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/7181/events","html_url":"https://github.com/nextcloud/server/issues/7181","id":274076012,"number":7181,"title":"Content in external storage (local) cannot be shared with users who are not logged in","user":{"login":"GetMike","id":18681318,"avatar_url":"https://avatars2.githubusercontent.com/u/18681318?v=4","gravatar_id":"","url":"https://api.github.com/users/GetMike","html_url":"https://github.com/GetMike","followers_url":"https://api.github.com/users/GetMike/followers","following_url":"https://api.github.com/users/GetMike/following{/other_user}","gists_url":"https://api.github.com/users/GetMike/gists{/gist_id}","starred_url":"https://api.github.com/users/GetMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetMike/subscriptions","organizations_url":"https://api.github.com/users/GetMike/orgs","repos_url":"https://api.github.com/users/GetMike/repos","events_url":"https://api.github.com/users/GetMike/events{/privacy}","received_events_url":"https://api.github.com/users/GetMike/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":389033477,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20external%20storage","name":"feature: external storage","color":"c2e0c6","default":false},{"id":389031994,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20sharing","name":"feature: sharing","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-15T08:44:01Z","updated_at":"2017-11-27T06:42:56Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThanks for reporting issues back to Nextcloud! This is the issue tracker of Nextcloud, if you have any support question please check out https://nextcloud.com/support\r\n\r\nThis is the bug tracker for the Server component. Find other components at https://github.com/nextcloud/\r\n\r\nFor reporting potential security issues please see https://nextcloud.com/security/\r\n\r\nTo make it possible for us to help you please fill out below information carefully. \r\nYou can also use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate\r\n--> \r\n### Steps to reproduce\r\n1. Create an external storage in your Nextcloud - in my case it is a local mediafolder on my server with photos as content used also by Plex Media Server.\r\n2. Share this folder via link to others by sending this link in an email.\r\n3. As email-recepient open this link - note: you are not logged in, you have no account on your nextcloud server.\r\n\r\n### Expected behaviour\r\nI excpect, that all the content of this shared folder is also shown to these users without account / login. Clicking a file should open this file (in my case photos / gallery).\r\n\r\n### Actual behaviour\r\nClicking the link opens the folder and shows the photos as thumbnails - subfolders are also shown and accessible. Content in subfolders is shown as thumbnails.\r\n\r\nBUT: If you click one photo to open it, an error is shown:\r\n\r\n“Fehler! Konnte keine Vorschau dieser Datei erzeugen. Bitte wechsle zum nächsten Bild, während im Hintergrund das Bild aus der Diashow entfernt wird.”\r\n\r\nThe log shows:\r\nError - Exception: Could not locate node linked to ID: 9333 (example!)\r\n\r\nI tried the same with a folder in the nextcloud filesystem (no external storage) and this works correct - the files can be opened by users without login.\r\n\r\n********\r\nSorry, some details of the following configurations/logs are missing in the moment, because I have no access to my server from outside. I will deliver this information as soon as possible!\r\n*********\r\n\r\n### Server configuration\r\n\r\n**Operating system**: openmediavault 3.0.91(debian linux)\r\n\r\n**Web server:** nginx version 1.6.2\r\n\r\n**Database:** mysql  5.5.58-0+deb8u1 (Debian)\r\n\r\n**PHP version:** PHP 5.6.30-0+deb8u1 (cli)\r\n\r\n**Nextcloud version:** (see Nextcloud admin page) 12.0.3\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:** Update from 12.0.2\r\n\r\n**Where did you install Nextcloud from:** initial install from nextcloud download link via commandline, updates via nextcloud web updater.\r\n\r\n**Signing status:**\r\n<details>\r\n<summary>No errors have been found.</summary>\r\n\r\n```\r\nLogin as admin user into your Nextcloud and access \r\nhttp://example.com/index.php/settings/integrity/failed \r\npaste the results here.\r\n```\r\n</details>\r\n\r\n**List of activated apps:**\r\n<details>\r\n<summary>Enabled:\r\n  - activity: 2.5.2\r\n  - apporder: 0.4.0\r\n  - bruteforcesettings: 1.0.2\r\n  - calendar: 1.5.6\r\n  - comments: 1.2.0\r\n  - contacts: 2.0.1\r\n  - dashboard: 4.0.5\r\n  - dav: 1.3.0\r\n  - federatedfilesharing: 1.2.0\r\n  - federation: 1.2.0\r\n  - files: 1.7.2\r\n  - files_external: 1.3.0\r\n  - files_pdfviewer: 1.1.1\r\n  - files_sharing: 1.4.0\r\n  - files_texteditor: 2.4.1\r\n  - files_trashbin: 1.2.0\r\n  - files_versions: 1.5.0\r\n  - files_videoplayer: 1.1.0\r\n  - firstrunwizard: 2.1\r\n  - gallery: 17.0.0\r\n  - gpxpod: 2.2.1\r\n  - logreader: 2.0.0\r\n  - lookup_server_connector: 1.0.0\r\n  - nextcloud_announcements: 1.1\r\n  - notes: 2.3.1\r\n  - notifications: 2.0.0\r\n  - oauth2: 1.0.5\r\n  - passman: 2.1.4\r\n  - password_policy: 1.2.2\r\n  - provisioning_api: 1.2.0\r\n  - serverinfo: 1.2.0\r\n  - sharebymail: 1.2.0\r\n  - survey_client: 1.0.0\r\n  - systemtags: 1.2.0\r\n  - tasks: 0.9.5\r\n  - theming: 1.3.0\r\n  - twofactor_backupcodes: 1.1.1\r\n  - updatenotification: 1.2.0\r\n  - workflowengine: 1.2.0\r\nDisabled:\r\n  - admin_audit\r\n  - direct_menu\r\n  - encryption\r\n  - user_external\r\n  - user_ldap\r\n</summary>\r\n\r\n```\r\nIf you have access to your command line run e.g.:\r\nsudo -u www-data php occ app:list\r\nfrom within your Nextcloud installation folder\r\n```\r\n</details>\r\n\r\n**Nextcloud configuration:**\r\n<details>\r\n<summary> \"system\": {\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"localhost\",\r\n            \"***.***.***.***\",\r\n            \"*****.**\"\r\n        ],\r\n        \"datadirectory\": \"\\/media\\/92ca31e2-a87e-45b0-a797-131cf9aaa8cd\\/www\\/nextcloud\\/data\",\r\n        \"overwrite.cli.url\": \"http:\\/\\/localhost\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"12.0.3.3\",\r\n        \"dbname\": \"******\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbport\": \"\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"logtimezone\": \"UTC\",\r\n        \"installed\": true,\r\n        \"instanceid\": \"****\",\r\n        \"maintenance\": false,\r\n        \"theme\": \"\",\r\n        \"loglevel\": 2\r\n    }\r\n</summary>\r\n\r\n```\r\nIf you have access to your command line run e.g.:\r\nsudo -u www-data php occ config:list system\r\nfrom within your Nextcloud installation folder\r\n\r\nor \r\n\r\nInsert your config.php content here. \r\nMake sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)\r\n```\r\n</details>\r\n\r\n**Are you using external storage, if yes which one:** local\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n<details>\r\n<summary>LDAP config</summary>\r\n\r\n```\r\nWith access to your command line run e.g.:\r\nsudo -u www-data php occ ldap:show-config\r\nfrom within your Nextcloud installation folder\r\n\r\nWithout access to your command line download the data/owncloud.db to your local\r\ncomputer or access your SQL server remotely and run the select query:\r\nSELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';\r\n\r\n\r\nEventually replace sensitive data as the name/IP-address of your LDAP server or groups.\r\n```\r\n</details>\r\n\r\n### Client configuration\r\n**Browser:** Firefox 56.0.2 (windows) // Chrome Version 62.0.3202.84 (android)\r\n\r\n**Operating system:** windows 10 // android 7.0\r\n\r\n### Logs\r\n#### Web server error log\r\n<details>\r\n<summary>Web server error log - tbd</summary>\r\n\r\n```\r\nInsert your webserver log here\r\n```\r\n</details>\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n<details>\r\n<summary>Nextcloud log - tbd</summary>\r\n\r\n```\r\nInsert your Nextcloud log here\r\n```\r\n</details>\r\n\r\n#### Browser log\r\n<details>\r\n<summary>Browser log - tbd</summary>\r\n\r\n```\r\nInsert your browser log here, this could for example include:\r\n\r\na) The javascript console log\r\nb) The network log\r\nc) ...\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/347092260","html_url":"https://github.com/nextcloud/server/issues/7181#issuecomment-347092260","issue_url":"https://api.github.com/repos/nextcloud/server/issues/7181","id":347092260,"user":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars3.githubusercontent.com/u/245432?v=4","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T06:42:56Z","updated_at":"2017-11-27T06:42:56Z","author_association":"OWNER","body":"> I noticed that this happens only when you share the root of the external drive.\r\n> If you share a subdirectory of external drive, the gallery images work just fine.\r\n\r\n@icewind1991 This looks like an actual bug in the etag propagation. 🤔 "}}
{"actor":{"display_login":"MorrisJobke"}}