Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: branch-api-plugin, cloudbees-folder-plugin
-
Labels:None
-
Environment:folders:6.11.0
-
Similar Issues:
-
Released As:cloudbees-folder:6.12
Description
Although a ComputedFolder supports the disable functionality and can be used by appending /disable to the folder URL, they do not show the Enable/Disable button in the UI.
According to the code, I think it should work https://github.com/jenkinsci/cloudbees-folder-plugin/blob/cloudbees-folder-6.11/src/main/resources/com/cloudbees/hudson/plugins/folder/AbstractFolder/view-index-top.jelly#L45-L68 but Multibranch / Organization folder fo not show that button. The UI seeems to match that Jelly but never passes the condition !it.supportsMakeDisabled()
Attachments
Issue Links
- links to
After further investigation, the problem is that the AbstractFolder#supportsMakeDisabled and ComputedFolder#supportsMakeDisabled are protected methods and in that case jelly just pass through <j:when test="${!it.supportsMakeDisabled()}">.
Could not find the documentation about method visibility requirements for jelly though.