forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indicate which plugin provides an UnprotectedRootAction
- Loading branch information
1 parent
c0ce2c1
commit d786396
Showing
3 changed files
with
33 additions
and
36 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
core/src/main/resources/hudson/security/LegacySecurityRealm/config.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package hudson.security.LegacySecurityRealm | ||
|
||
import hudson.PluginWrapper | ||
import hudson.model.UnprotectedRootAction | ||
import jenkins.model.Jenkins | ||
|
||
def f = namespace(lib.FormTagLib) | ||
|
||
f.entry(title: _('Unprotected URLs')) { | ||
p(_('blurb')) | ||
ul { | ||
for (def action : Jenkins.get().getActions().sort { x, y -> x.getUrlName() <=> y.getUrlName() }) { | ||
if (action instanceof UnprotectedRootAction) { | ||
li { | ||
a(href: '../' + action.getUrlName(), target: '_blank') { | ||
code { | ||
text(action.getUrlName()) | ||
} | ||
} | ||
br() | ||
PluginWrapper whichPlugin = Jenkins.get().getPluginManager().whichPlugin(action.getClass()) | ||
if (whichPlugin == null) { | ||
text(_("byCore")) | ||
} else { | ||
raw(_("byPlugin", whichPlugin.getDisplayName(), whichPlugin.getUrl())) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
core/src/main/resources/hudson/security/LegacySecurityRealm/config.jelly
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters