[BUG] Plugin Breaking change

Offen
#94 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
docker, nginx
Bereich
devops

Rechercherichtung

Start by reading the Nginx configuration linked in the issue, especially the location rule denying access to paths containing vendor/, and compare it with how DokuWiki serves plugin assets. The issue seeks a general solution for browser requested plugin files; done means the ProseMirror asset and similar plugin updates work without exposing protected paths. No repository file or test is identified in the issue.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

According to https://github.com/cosmocode/dokuwiki-plugin-prosemirror/issues/232 the prosemirror plugin changed its behaviour with the latest update:

Since the last update they are no longer loaded via the DokuWiki dispatcher but requested directly by your browser.

The browser requests to get https://<server>/lib/plugins/prosemirror/vendor/prosemirror.js and gets a 403 forbidden error.

The forbidden error comes from:

https://github.com/linuxserver/docker-dokuwiki/blob/master/root/defaults/nginx/site-confs/default.conf.sample

    location ~ /(conf/|bin/|inc/|vendor/) {
        deny all;
    }

The AI suggests an exact match:

location = /lib/plugins/prosemirror/vendor/prosemirror.js {
    # Nginx will serve the file using the server's existing root/alias settings.
}

I prefer to more generic solution that works for all plugins who switch from DokuWiki dispatcher to the browser.

Expected Behavior

The prosemirror plugin and future plugin updates shall continue to work.

Steps To Reproduce
  1. Install/Update prosemirror plugin
  2. Edit a page
  3. See error
Environment
- OS: Synology DSM
- How docker service was installed: Synology Container Manager
CPU architecture

x86-64

Docker creation
docker-compose up -d --wait
Container logs
no container logs
Vorherrschende Sprache
Dockerfile
Sterne
125
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus linuxserver/docker-dokuwiki

Alle Issues in linuxserver/docker-dokuwiki

Ähnliche Issues

Weitere Issues zu DevOps

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.