Spring Security ACL: the sec:permitted and sec:notPermitted tags fail when the plugin is inactive

オープン 初心者向け
#17,130 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
groovy
領域
authorization

調査の方向性

SecurityAclTagLib から始めてください。このクラスは sec:permitted と sec:notPermitted タグを定義しており、core または ACL プラグインが無効なときは aclUtilService が未定義のため失敗します。core の sec タグがすでに使用している早期リターンのガードと比較してください。これは #16972 の変更です。同じガードを両方の ACL タグに追加し、そのうえでこれらを使用する GSP がプラグイン無効時に例外を投げず、空の出力を描画することを確認してください。

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

説明

Follow-up from the review of #16972 (the sec: tags render nothing when the plugin is inactive).

SecurityAclTagLib also puts tags in the sec namespace, sec:permitted and sec:notPermitted. They have the same problem when the core or the ACL plugin is inactive, because aclUtilService is not defined then, so a GSP that uses them fails instead of rendering. They could return early the way the core tags now do.

主要言語
Groovy
スター
2.9k
フォーク
980
平均マージ
1日 21時間
マージ済み PR(30日)
148

環境構築

はじめの一歩

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

apache/grails-core のほかの issue

apache/grails-core の issue をすべて見る

似ている issue

Security の issue をもっと見る

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

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