[BUG] Plugin Breaking change

Open
#94 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, nginx
Domain
devops

Research direction

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.

Written by the indexing model from the issue text.

Description

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
Dominant language
Dockerfile
Stars
125
Forks
24
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxserver/docker-dokuwiki

All issues in linuxserver/docker-dokuwiki

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.