Steps to reproduce
- Install Nextcloud in read-only
/usr, with writeable data in /var/lib/nextcloud:
- official apps are bundled with NC under
/usr,
- extra apps get installed in
/var/lib/nextcloud/apps.
- Install Polls: it gets installed in
/var/lib/nextcloud/apps/polls, associated with URL prefix /xapps/polls.
- Polls mostly works.
Expected behaviour
URLs to /…/polls/img/*.svg (yes-vote, no-vote…) should depend on the path of the app itself, in my case /xapps/polls.
Actual behaviour
URLs to /…/polls/img/*.svg (yes-vote, no-vote…) are hard-coded to be /apps/polls/img/*.svg.
Server configuration
See here:
nextcloud/server#7037
Browser console: 502 bad gateway for the SVG files.
Nginx console: [error] 9068#9068: *38300 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.99, server: , request: "GET /apps/polls/img/no-vote.svg HTTP/1.1", upstream: "uwsgi://unix:/run/nextcloud:", host: "yalis.fr"
uwsgi console: GET /apps/polls/img/no-vote.svg => generated 0 bytes in 0 msecs (HTTP/1.1 500)
Steps to reproduce
/usr, with writeable data in/var/lib/nextcloud:/usr,/var/lib/nextcloud/apps./var/lib/nextcloud/apps/polls, associated with URL prefix/xapps/polls.Expected behaviour
URLs to
/…/polls/img/*.svg(yes-vote, no-vote…) should depend on the path of the app itself, in my case/xapps/polls.Actual behaviour
URLs to
/…/polls/img/*.svg(yes-vote, no-vote…) are hard-coded to be/apps/polls/img/*.svg.Server configuration
See here:
nextcloud/server#7037
Browser console:
502 bad gatewayfor the SVG files.Nginx console:
[error] 9068#9068: *38300 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.99, server: , request: "GET /apps/polls/img/no-vote.svg HTTP/1.1", upstream: "uwsgi://unix:/run/nextcloud:", host: "yalis.fr"uwsgi console:
GET /apps/polls/img/no-vote.svg => generated 0 bytes in 0 msecs (HTTP/1.1 500)