bitbucket server: servlet not loading into the correct location

Daniel Szabo October 4, 2015

Trying to update my plugin for Bitbucket server. Eariler, my plugin servlet loaded itself to the correct location, to the repository context items when I clicked on the generated link:

 

<web-item key="repository-settings-slack-settings" weight="30" section="bitbucket.repository.settings.panel/repository-settings-addons-section">
<label key="bitbucket.server.web.repository.settings.tab.slack.settings">Slack settings</label>
<tooltip key="bitbucket.web.repository.settings.tab.slack.settings.tooltip">Configure whether you want slack notifications</tooltip>
<link>${navBuilder.pluginServlets().path('slack-settings', 'projects', $project.key, 'repos', $repository.slug).buildRelNoContext()}</link>
</web-item>

Now my servlet loads incorrectly with Bitbucket server, eg the servlet loads as a top level thing, and not into the settings location. Could anybody tell me what am I doing wrong?

 

See the expected behaviour (with old plugin and stash server):

https://dl.dropboxusercontent.com/u/1962283/plugin-servlet_stash.png

See the incorrect behaviour (with Bitbucket server)

https://dl.dropboxusercontent.com/u/1962283/plugin-servlet_bitbucket-server.png

 

thanks for your inputs!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Mibex_Software
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2015

Hi,

Could you please make sure that you use the following decorator in your repository settings SOY template:

&lt;meta name="decorator" content="bitbucket.repository.settings"&gt;

Hope this helps.

Cheers,

Michael

Daniel Szabo October 4, 2015

Oh my god, this was it, thank you very much! I had '<meta name="decorator" content="bitbucketserver.repository.settings">' instead of <meta name="decorator" content="bitbucket.repository.settings"> there by mistake.

Daniel Szabo October 4, 2015

By the way, this was pretty hard (basically impossible) for me to debug, is there any place in some atlassian documentation that clearly points out this with all possible content settings? I googled like mad, but not found anything. Thanks again!

Mibex_Software
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2015

You're welcome! Yes, things like these are hard to debug. You can find the possible decorators here: https://developer.atlassian.com/bitbucket/server/docs/latest/reference/plugin-decorators.html

Robin Stocker
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2015

Thanks for answering, Michael! I've also updated our howto for updating add-ons: https://confluence.atlassian.com/display/BitbucketServer/How+to+update+your+add-on

TAGS
AUG Leaders

Atlassian Community Events