Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-26130

External gadget can't be added properly to JIRA if gadget uses base tag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Medium
    • None
    • 4.4.3
    • Dashboard & Gadgets
    • 4.04
    • Severity 2 - Major
    • Hide
      Atlassian Update – 04 December 2017

      Hi everyone,

      We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out.

      Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.

      We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication.

      Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.

      Thank you,
      Ignat Alexeyenko
      Jira Bugmaster

      Show
      Atlassian Update – 04 December 2017 Hi everyone, We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out . Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details. We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication. Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments. Thank you, Ignat Alexeyenko Jira Bugmaster

    Description

      I'm trying to write a gadget and host it in JIRA. The call to makeRequest is broken when the <base> tag is provided as part of the gadget content. For example, consider the following gadget content:

      <![CDATA[
      <html>
      <head><base href="https://sample.com/" /></head>
      <body>
      <script>
      gadgets.io.makeRequest("http://www.google.com",function(response)

      Unknown macro: { console.debug(response); }

      ,

      Unknown macro: {METHOD}

      );
      </script>
      </body>
      </html>
      ]]>

      -------> Notice the <base> tag set to "https://sample.com"

      When this gadget runs, JIRA will issue the makeRequest to:
      https://sample.com/plugins/servlet/gadgets/makeRequest <------ INCORRECT! JIRA is picking up the href from the <base> tag
      INSTEAD OF
      https://localhost:8080/plugins/servlet/gadgets/makeRequest

      Since the makeRequest call should always be forwarded on to the OpenSocial container (JIRA), it looks as though there is a bug in the way JIRA handles gadgets that supply a <base> tag.

      See the attached file (ExampleGadget.xml) for a simply test case that can be executed.

      Attachments

        Activity

          People

            astephen@atlassian.com Adrian Stephen
            63d3a9e3-d8ad-4f48-8a9d-71b4a1c81034 Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: