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

Search not working in shared (external/local storage) folders #1020

Closed
X4LD1M0 opened this issue Aug 23, 2016 · 4 comments
Closed

Search not working in shared (external/local storage) folders #1020

X4LD1M0 opened this issue Aug 23, 2016 · 4 comments

Comments

@X4LD1M0
Copy link

X4LD1M0 commented Aug 23, 2016

Edit: In #9698 people report that it is especially with user to user shares.

Steps to reproduce

  1. Admin user creates external/local storage
  2. Admin shares storage with normal user(s)
  3. Normal user tries to search for file which does exist in shared (external) storage
  4. No results found
  5. Log in as Admin
  6. Do the same search from the home directory, and results do pop up

Expected behaviour

Users should be able to find any file(s)/folder(s) within shared folders
2016-08-23 - selection 001

Actual behaviour

Only the owner of the folder (Admin) can search properly within the folders
2016-08-23 - selection 002

Server configuration

Operating system: Debian 8.5

Web server: Apache2 2.4.10

Database: MySQL 5.5.50

PHP version: PHP 5.6.24

Nextcloud version: 9.0.53

Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Where did you install Nextcloud from: Direct download from nextcloud.com

Signing status:

Signing status

No errors have been found.

List of activated apps:

App list

Enabled:
  - activity: 2.3.2
  - admin_audit: 1.0.0
  - announcementcenter: true
  - comments: 0.3.0
  - dav: 0.2.5
  - federatedfilesharing: 0.3.0
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.6.0
  - files_pdfviewer: 0.8.1
  - files_sharing: 0.10.0
  - files_texteditor: 2.1
  - files_trashbin: 0.9.0
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - galleryplus: 15.1.1
  - notifications: 0.3.0
  - password_policy: 1.0.0
  - provisioning_api: 0.5.0
  - richdocuments: true
  - systemtags: 0.3.0
  - templateeditor: 0.1
  - theming: 0.2.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - gallery
  - registration
  - user_external
  - user_ldap
  - user_saml

The content of config/config.php:

Config report

{
    "system": {
        "instanceid": "occ3bgzu13dp",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.7.245"
        ],
        "datadirectory": "\/media\/nextcloud",
        "overwrite.cli.url": "https:\/\/192.168.7.245",
        "dbtype": "mysql",
        "version": "9.0.53.0",
        "dbname": "nextcloud",
        "dbhost": "kobol.io-node.net",
        "dbtableprefix": "nc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "trusted_proxies": [
            "192.168.7.241"
        ],
        "overwritehost": "cloud.wijman.me.uk",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/",
        "overwritecondaddr": "^192\\.168\\.7\\.241$",
        "mail_from_address": "cloud",
        "mail_smtpmode": "sendmail",
        "mail_domain": "wijman.me.uk",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        },
        "maintenance": false,
        "loglevel": 2,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "mail.mailarena.net",
        "mail_smtpport": "25",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "io-node",
        "htaccess.RewriteBase": "\/",
        "updater.server.url": "https:\/\/updates.nextcloud.org\/updater_server\/",
        "filesystem_check_changes": 1,
        "enable_previews": true,
        "preview_max_x": 640,
        "preview_max_y": 640,
        "skeletondirectory": "\/media\/nextcloud\/skeleton",
        "appstore.experimental.enabled": true,
        "activity_expire_days": 365
    }
}

Are you using external storage, if yes which one: smb
Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Google Chrome 52.0.2743.82

Operating system: Debian 8.5

Logs

Web server error log

Web server error log

192.168.7.1 - - [23/Aug/2016:08:42:46 +0100] "GET /core/search?query=Catherine&inApps%5B%5D=files&page=1&size=30 HTTP/1.1" 200 1648 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
192.168.7.1 - - [23/Aug/2016:08:42:46 +0100] "GET /core/preview.png?file=%2FDocuments%2FPrivate%2FMy+sweet+Catherine.docx&x=32&y=32&forceIcon=0 HTTP/1.1" 404 831 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
192.168.7.1 - swijman [23/Aug/2016:08:42:46 +0100] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 7416 "-" "Mozilla/5.0 (Linux) mirall/2.2.3"
192.168.7.1 - swijman [23/Aug/2016:08:42:47 +0100] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 7100 "-" "Mozilla/5.0 (Linux) mirall/2.2.3"
#### Nextcloud log (data/nextcloud.log)

Nextcloud log

No entry in NC log
#### Browser log

Browser log

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "WebInspector",
      "version": "537.36"
    },
    "pages": [],
    "entries": [
      {
        "startedDateTime": "2016-08-23T07:45:13.304Z",
        "time": 1259.7790001891553,
        "request": {
          "method": "GET",
          "url": "https://cloud.wijman.me.uk/core/search?query=Catherine&inApps%5B%5D=files&page=1&size=30",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Cookie",
              "value": "oc_sessionPassphrase=BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2; nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; occ3bgzu13dp=uv59a0gp5fdiltg2j3ub1ptup4"
            },
            {
              "name": "requesttoken",
              "value": "RDgpIkBVMjgOZCleFR8xZy0IE3sDYEI/Mh4bHQxONlM=:qiEr98WYfWz+gLT5O1PH2S1tWFWuiyE6MMUA9DCcwbA="
            },
            {
              "name": "DNT",
              "value": "1"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, sdch, br"
            },
            {
              "name": "Host",
              "value": "cloud.wijman.me.uk"
            },
            {
              "name": "Accept-Language",
              "value": "en-GB,en-US;q=0.8,en;q=0.6,nl;q=0.4"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
            },
            {
              "name": "OCS-APIREQUEST",
              "value": "true"
            },
            {
              "name": "Accept",
              "value": "application/json, text/javascript, */*; q=0.01"
            },
            {
              "name": "X-Requested-With",
              "value": "XMLHttpRequest"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            }
          ],
          "queryString": [
            {
              "name": "query",
              "value": "Catherine"
            },
            {
              "name": "inApps%5B%5D",
              "value": "files"
            },
            {
              "name": "page",
              "value": "1"
            },
            {
              "name": "size",
              "value": "30"
            }
          ],
          "cookies": [
            {
              "name": "oc_sessionPassphrase",
              "value": "BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookielax",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookiestrict",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "occ3bgzu13dp",
              "value": "uv59a0gp5fdiltg2j3ub1ptup4",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": 831,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Date",
              "value": "Tue, 23 Aug 2016 07:45:13 GMT"
            },
            {
              "name": "X-Content-Type-Options",
              "value": "nosniff"
            },
            {
              "name": "X-Permitted-Cross-Domain-Policies",
              "value": "none"
            },
            {
              "name": "Connection",
              "value": "Keep-Alive"
            },
            {
              "name": "Strict-Transport-Security",
              "value": "max-age=15768000; includeSubDomains; preload"
            },
            {
              "name": "Content-Length",
              "value": "648"
            },
            {
              "name": "X-XSS-Protection",
              "value": "1; mode=block"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Server",
              "value": "Apache/2.4.10 (Debian)"
            },
            {
              "name": "X-Download-Options",
              "value": "noopen"
            },
            {
              "name": "X-Frame-Options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "Content-Type",
              "value": "application/json; charset=utf-8"
            },
            {
              "name": "Cache-Control",
              "value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
            },
            {
              "name": "Content-Security-Policy",
              "value": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *"
            },
            {
              "name": "X-Robots-Tag",
              "value": "none"
            },
            {
              "name": "Keep-Alive",
              "value": "timeout=5, max=100"
            },
            {
              "name": "Expires",
              "value": "Thu, 19 Nov 1981 08:52:00 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 648,
            "mimeType": "application/json",
            "compression": 0
          },
          "redirectURL": "",
          "headersSize": 805,
          "bodySize": 648,
          "_transferSize": 1453
        },
        "cache": {},
        "timings": {
          "blocked": 5.79700013622642,
          "dns": 0.02799974754451995,
          "connect": 54.822999984025955,
          "send": 0.5840002559124997,
          "wait": 1196.8330000527205,
          "receive": 1.7140000127253643,
          "ssl": 26.678000111132903
        },
        "serverIPAddress": "81.153.151.100",
        "connection": "25931376"
      },
      {
        "startedDateTime": "2016-08-23T07:45:14.617Z",
        "time": 517.7299999631941,
        "request": {
          "method": "GET",
          "url": "https://cloud.wijman.me.uk/core/preview.png?file=%2FDocuments%2FPrivate%2FMy+sweet+Catherine.docx&x=32&y=32&forceIcon=0",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "DNT",
              "value": "1"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, sdch, br"
            },
            {
              "name": "Host",
              "value": "cloud.wijman.me.uk"
            },
            {
              "name": "Accept-Language",
              "value": "en-GB,en-US;q=0.8,en;q=0.6,nl;q=0.4"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
            },
            {
              "name": "Accept",
              "value": "image/webp,image/*,*/*;q=0.8"
            },
            {
              "name": "Cookie",
              "value": "oc_sessionPassphrase=BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2; nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; occ3bgzu13dp=uv59a0gp5fdiltg2j3ub1ptup4"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            }
          ],
          "queryString": [
            {
              "name": "file",
              "value": "%2FDocuments%2FPrivate%2FMy+sweet+Catherine.docx"
            },
            {
              "name": "x",
              "value": "32"
            },
            {
              "name": "y",
              "value": "32"
            },
            {
              "name": "forceIcon",
              "value": "0"
            }
          ],
          "cookies": [
            {
              "name": "oc_sessionPassphrase",
              "value": "BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookielax",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookiestrict",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "occ3bgzu13dp",
              "value": "uv59a0gp5fdiltg2j3ub1ptup4",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": 683,
          "bodySize": 0
        },
        "response": {
          "status": 404,
          "statusText": "Not Found",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Date",
              "value": "Tue, 23 Aug 2016 07:45:14 GMT"
            },
            {
              "name": "X-Content-Type-Options",
              "value": "nosniff"
            },
            {
              "name": "X-Permitted-Cross-Domain-Policies",
              "value": "none"
            },
            {
              "name": "Connection",
              "value": "Keep-Alive"
            },
            {
              "name": "Strict-Transport-Security",
              "value": "max-age=15768000; includeSubDomains; preload"
            },
            {
              "name": "Content-Length",
              "value": "0"
            },
            {
              "name": "X-XSS-Protection",
              "value": "1; mode=block"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Server",
              "value": "Apache/2.4.10 (Debian)"
            },
            {
              "name": "X-Download-Options",
              "value": "noopen"
            },
            {
              "name": "X-Frame-Options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "Content-Type",
              "value": "text/html; charset=UTF-8"
            },
            {
              "name": "Cache-Control",
              "value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
            },
            {
              "name": "Content-Security-Policy",
              "value": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *"
            },
            {
              "name": "X-Robots-Tag",
              "value": "none"
            },
            {
              "name": "Keep-Alive",
              "value": "timeout=5, max=99"
            },
            {
              "name": "Expires",
              "value": "Thu, 19 Nov 1981 08:52:00 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 0,
            "mimeType": "text/html",
            "compression": 0
          },
          "redirectURL": "",
          "headersSize": 802,
          "bodySize": 0,
          "_transferSize": 802
        },
        "cache": {},
        "timings": {
          "blocked": 6.72099972143769,
          "dns": -1,
          "connect": -1,
          "send": 0.4759998992085501,
          "wait": 508.3890003152187,
          "receive": 2.1440000273291844,
          "ssl": -1
        },
        "serverIPAddress": "81.153.151.100",
        "connection": "25931376"
      },
      {
        "startedDateTime": "2016-08-23T07:45:37.218Z",
        "time": 719.7529999539256,
        "request": {
          "method": "GET",
          "url": "https://cloud.wijman.me.uk/ocs/v2.php/apps/notifications/api/v1/notifications?format=json",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Cookie",
              "value": "oc_sessionPassphrase=BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2; nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; occ3bgzu13dp=uv59a0gp5fdiltg2j3ub1ptup4"
            },
            {
              "name": "requesttoken",
              "value": "RDgpIkBVMjgOZCleFR8xZy0IE3sDYEI/Mh4bHQxONlM=:qiEr98WYfWz+gLT5O1PH2S1tWFWuiyE6MMUA9DCcwbA="
            },
            {
              "name": "DNT",
              "value": "1"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate, sdch, br"
            },
            {
              "name": "Host",
              "value": "cloud.wijman.me.uk"
            },
            {
              "name": "Accept-Language",
              "value": "en-GB,en-US;q=0.8,en;q=0.6,nl;q=0.4"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
            },
            {
              "name": "OCS-APIREQUEST",
              "value": "true"
            },
            {
              "name": "Accept",
              "value": "*/*"
            },
            {
              "name": "X-Requested-With",
              "value": "XMLHttpRequest"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            }
          ],
          "queryString": [
            {
              "name": "format",
              "value": "json"
            }
          ],
          "cookies": [
            {
              "name": "oc_sessionPassphrase",
              "value": "BMmvdiYbB2HwEm8JVRLbBx8WrK32yCbkp9bHKZauFxOJgUJSG7lnnOchx0LCfBU%2FTyiIR%2Fsjh1e4D5pXWeSUIbQPW159ZKFnQcBRJB6o6noz2xqcpV9NGig1%2BAka7rt2",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookielax",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "nc_sameSiteCookiestrict",
              "value": "true",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "occ3bgzu13dp",
              "value": "uv59a0gp5fdiltg2j3ub1ptup4",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": 789,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Date",
              "value": "Tue, 23 Aug 2016 07:45:37 GMT"
            },
            {
              "name": "X-Content-Type-Options",
              "value": "nosniff"
            },
            {
              "name": "X-Permitted-Cross-Domain-Policies",
              "value": "none"
            },
            {
              "name": "Connection",
              "value": "Keep-Alive"
            },
            {
              "name": "Strict-Transport-Security",
              "value": "max-age=15768000; includeSubDomains; preload"
            },
            {
              "name": "Content-Length",
              "value": "74"
            },
            {
              "name": "X-XSS-Protection",
              "value": "1; mode=block"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Server",
              "value": "Apache/2.4.10 (Debian)"
            },
            {
              "name": "ETag",
              "value": "d751713988987e9331980363e24189ce"
            },
            {
              "name": "X-Download-Options",
              "value": "noopen"
            },
            {
              "name": "X-Frame-Options",
              "value": "SAMEORIGIN"
            },
            {
              "name": "Content-Type",
              "value": "application/json; charset=utf-8"
            },
            {
              "name": "Cache-Control",
              "value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
            },
            {
              "name": "Content-Security-Policy",
              "value": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *"
            },
            {
              "name": "X-Robots-Tag",
              "value": "none"
            },
            {
              "name": "Keep-Alive",
              "value": "timeout=5, max=100"
            },
            {
              "name": "Expires",
              "value": "Thu, 19 Nov 1981 08:52:00 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 74,
            "mimeType": "application/json",
            "compression": 0
          },
          "redirectURL": "",
          "headersSize": 844,
          "bodySize": 74,
          "_transferSize": 918
        },
        "cache": {},
        "timings": {
          "blocked": 6.47399993613362,
          "dns": 12.639999855309682,
          "connect": 55.53500028327109,
          "send": 0.24699978530411215,
          "wait": 643.3740002103156,
          "receive": 1.4829998835915603,
          "ssl": 28.178000357002
        },
        "serverIPAddress": "81.153.151.100",
        "connection": "25931660"
      }
    ]
  }
}```
</details>
@divinitus
Copy link

Version 11.0.1 - still no support for external storage search.

@peez80
Copy link

peez80 commented Nov 2, 2017

Same with me - I'd need this, too.

@MorrisJobke
Copy link
Member

In #9698 people report that it is especially with user to user shares.

@me2resh
Copy link

me2resh commented Oct 25, 2018

@MorrisJobke This is a blocker here as well!

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 25, 2018
@MorrisJobke MorrisJobke added this to the Nextcloud 14.0.4 milestone Oct 26, 2018
rullzer added a commit that referenced this issue Nov 5, 2018
Fixes #1020

When an external storage is shared with you in full the root is ''
(empty). This adds an extra check for an empty jail basically.

Because if the jail is on the empty string. It matches all paths.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer added a commit that referenced this issue Nov 9, 2018
Fixes #1020

When an external storage is shared with you in full the root is ''
(empty). This adds an extra check for an empty jail basically.

Because if the jail is on the empty string. It matches all paths.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
rullzer added a commit that referenced this issue Nov 9, 2018
Fixes #1020

When an external storage is shared with you in full the root is ''
(empty). This adds an extra check for an empty jail basically.

Because if the jail is on the empty string. It matches all paths.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants