Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Runtime cache access failures expose a raw permission error to a second account

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

Maintainer thường phản hồi trong vòng 1 ngày

@pheus đang làm issue này rồi.

Từ ngày 23/10/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/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ệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start by reproducing the failure with the web service and RQ worker running as different accounts, then trace the Script Run tab's source-loading path and the runtime cache-directory checks. Confirm the cache-specific diagnostic is reached for the second account and identifies the affected directory instead of exposing the raw permission error.

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

Mô tả

app: scripts severity: low status: backlog type: bug
Plugin Version

v0.0.1

NetBox Version

v4.7.1

Python Version

3.12

Steps to Reproduce
  1. Run the web service and RQ worker as different accounts sharing /tmp, with runtime_cache_root unset. This differs from NetBox's shipped systemd setup, which uses one account and private temporary directories.
  2. Upload a Script so the worker validates it and creates the runtime cache.
  3. Once the revision is active, open the Script's Run tab through the web service.
Expected Behavior

The plugin reports a clear runtime cache error identifying the affected directory, as it does for other cache access problems.

Observed Behavior

The Run tab reports "The Script could not be loaded from its source: [Errno 13] Permission denied: '/tmp/netbox-scripts/runtime-cache'".

Access fails before the plugin's cache-directory checks run for the second account, so the operator receives a raw source-loading error instead of the cache-specific diagnostic.

Ngôn ngữ chính
Python
Star
8
Fork
0
Merge trung bình
11 giờ 35 phút
Pull request đã merge (30 ngày)
20

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 netbox-community/netbox-scripts

Tất cả issue của netbox-community/netbox-scripts

Issue tương tự

Thêm issue về Python

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.