Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9194

Can't write Bamboo gadget in a Bamboo plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.2 RC1, 3.2
    • 3.1.4
    • Gadgets
    • None

    Description

      It's not possible to currently write a gadget in a Bamboo plugin for consumption in JIRA (or other gadget containers).

      The problem is that the REST resource that serves up the gadget returns a 500 error to logged out users (despite that REST Resource specifying AnonymousAllowed).

      For example if you request https://jira.bamboo.atlassian.com/rest/gadgets/1.0/g/com.atlassian.bamboo.gadgets.build-plan-hack/status/planStatusWithBreakers.xml you get a 500 error when you are logged out.

      When shindig (from say JIRA) attempts to request the gadget XML it does not use authentication since the gadget XML is just a static XML resource that doesn't contain any data.

      It seems that Bamboo has a whitelist implemented that allows REST requests for gadgets with the package com.atlassian.bamboo.gadgets (to make the gadgets shipped with Bamboo work). However this approach doesn't work if you write your own Bamboo plugin because you can't deploy 2 plugins with the same key!

      Attachments

        Activity

          People

            mwent Marek Went (Inactive)
            andreask@atlassian.com Andreas Knecht (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: