[BUG] Plugin Breaking change

Đang mở
#94 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, nginx
Lĩnh vực
devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Dockerfile
Star
125
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxserver/docker-dokuwiki

Tất cả issue của linuxserver/docker-dokuwiki

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.