Enable strict authorization configuration by default in 3.1

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

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

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

Từ ngày 12/11/2026.

  • #2959 của @lprimak — đang mở

Đá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
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java

Hướng nghiên cứu

Read the authorization configuration and WildcardPermission code that consume shiro.authz.strictConfig, then inspect the authorization, permissions, web, and migration guides named in the issue. Check the existing 3.0.2 default and how the property is read before changing the 3.1 default. Done means the absent property enables both strict checks in 3.1, the explicit false opt-out remains available, 3.0.2 is unchanged, and all four guides explain the change; a linked pull request is already open.

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

Mô tả

java

Make strict authorization configuration the default in Shiro 3.1.

The shiro.authz.strictConfig system property, introduced as an opt-in in 3.0.2, currently defaults to false. It controls two checks through one shared policy:

  • Empty authorization filter configurations and empty @RequiresPermissions / @RequiresRoles values are rejected at startup.
  • Empty or blank WildcardPermission parts and subparts, including trailing separators, are rejected.

For 3.1 the default should be true when the property is absent. -Dshiro.authz.strictConfig=false remains the opt-out for legacy behavior. The 3.0.2 default is unchanged.

The authorization, permissions and web guides and the migration guide on the site should explain the change and the opt-out.

Ngôn ngữ chính
Java
Star
4.5k
Fork
2.3k
Merge trung bình
1 ngày 5 phút
Pull request đã merge (30 ngày)
27

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 apache/shiro

Tất cả issue của apache/shiro

Issue tương tự

Thêm issue về Java

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.