Problem with decorate my action in xWork, the page shows without tabs Edited

Hi,

please I am new to Bamboo development and have a problem, if you could hellp me.

I develop a bamboo plugin and I have this xwork:

<xwork key="viewNFTResults" name="View NFT Results">
<package name="nftResults" extends="buildResultView">
<action name="viewNFTLogs" class="com.atlassian.sap.nftresults.impl.NFTLogsView">
<result name="success" type="freemarker">/fragments/view-nft-results-log.ftl</result>
<result name="error" type="freemarker">/fragments/error.ftl</result>
</action>
</package>
</xwork>

<web-item key="NFT:\${planKey}-\${buildNumber}" name="chainNFTResults" section="chainResults.subMenu/chainResults"
weight="80">
<label key="NFT logs"/>
<link linkId="NFT:\${planKey}-\${buildNumber}">/build/result/viewNFTLogs.action?buildKey=${planKey}&amp;buildNumber=${buildNumber}</link>
</web-item>

 in my ftl file I put in head: 

<head>
<meta name="decorator" content="result"/>
<meta name="tab" content="chainNFTResults"/>
</head>

and the NFTLogsView class extends BuildResultsAction.

Now when I click the NFt logs tab when the build is running, the content of this tab is appears and the action performed and the page decorator is ok also, like that:

 

Screen Shot 2017-08-10 at 11.31.09.png

But when I refresh the page or when the build is finished, and I am showing the tab (I mean inside the tab), I get this page:

Screen Shot 2017-08-10 at 11.29.09.png

the other tabs is disappeared and I git many exceptions in logs, like:

Java method "com.atlassian.bamboo.ww2.BambooActionSupport.getWebSectionsForLocation(String)" threw  an exception.

and ...

[INFO] [talledLocalContainer] The following has evaluated to null or missing:

[INFO] [talledLocalContainer] ==> fn.hasPlanPermissionForKey("BUILD", stage.planKey)  [in template "lib/chains.ftl" at line 369, column 49]

and ...

Java method "com.atlassian.bamboo.ww2.BambooActionSupport.hasPlanPermission(String, String)"an exception.

and myny other exeptions. Although the action url is the same when I click the tab and when refresh the page.

 

Any suggestions please.

 

Thank you very much in advance. 

 

 

1 answer

0 votes
Martin I'm New Here Sep 28, 2017

I have a similar issue, did you find a solution yet?

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,072 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot