Skip to content

Polls app takes for granted that it lives under /apps #249

Description

@tYYGH

Steps to reproduce

  1. 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.
  2. Install Polls: it gets installed in /var/lib/nextcloud/apps/polls, associated with URL prefix /xapps/polls.
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions