[BUG] Plugin Breaking change

Aperta
#94 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, nginx
Ambito
devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Dockerfile
Stelle
125
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di linuxserver/docker-dokuwiki

Tutte le issue di linuxserver/docker-dokuwiki

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.