[BUG] Plugin Breaking change

オープン
#94 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, nginx
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Dockerfile
スター
125
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxserver/docker-dokuwiki のほかの issue

linuxserver/docker-dokuwiki の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。