-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
The following XML should create a repro:
<web-item key="somekey" name="somename" weight="20" section="atl.admin/admin-settings-section" application="stash"> <condition class="com.atlassian.stash.web.conditions.HasGlobalPermissionCondition"> <param name="permission">SYS_ADMIN</param> </condition> <label key="plugin.page.repo.ci.info.tab.label">somelabel</label> <tooltip key="plugin.page.repo.ci.sys.info.tab.tooltip">sometooltip</tooltip> <link>/somepath</link> </web-item>
In an atlassian-plugin.xml which does NOT have a <component-import/> tag for PermissionService. Furthermore, even explicitly component-import-ing the condition class doesn't resolve it. If the condition class depended upon several beans, you'd have to trial-and-error determine each of its transitive dependencies and add them one-by-one.
A complete example of the bugged condition can be found here: https://github.com/palantir/stashbot/blob/7226bedc0ea5e886787a46a4b31125bdda418598/src/main/resources/atlassian-plugin.xml
In this revision of the file, I tried adding component-imports fort he condition classes but it just caused things to fail silently (and frustratingly), in stash 2.6.1 the plugin fails to enable.
- is related to
-
BSERV-5041 IsPersonalProjectCondition/IsPersonalRepositoryCondition doesn't work from a plugin
- Closed
- is cloned from
-
PLUG-1040 Loading...