Skip to content

NC12: apps outside of nextcloud's root directory result in "ResourceLocator can not find a web root" #5289

@philfry

Description

@philfry

This bug is similar to #5057

Steps to reproduce

  1. move apps from /var/www/nextcloud/apps to /var/www/nextcloud-apps
  2. change config to
'apps_paths' =>  
  array (
    0 =>  
    array (
      'path' => '/var/www/nextcloud-apps',
      'url' => '/apps',
      'writable' => true,
    ),  
  ), 
  1. set alias in httpd.conf:
Alias /apps /var/www/nextcloud-apps

Expected behaviour

No errors in log, no ui glitches

Actual behaviour

css is not loaded, errors in log:

{"reqId":"...","level":3,"time":"2017-06-07T16:17:26+02:00","remoteAddr":"xxx","user":"xxx","app":"lib","method":"GET","url":"\/index.php\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/nextcloud-apps\/files, file: index.php\/css\/files\/merged.css, webRoot: , throw: true)","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:53.0) Gecko\/20100101 Firefox\/53.0","version":"12.0.0.29"}

Server configuration

Operating system:
CentOS 7

Web server:
httpd 2.4

Database:
mariadb 10.2.6

PHP version:
7.1.5

Nextcloud version:
12.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
updated from 11.0.3

Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-12.0.0.zip

Signing status:

Alle Checks bestanden.

...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions