Uploaded image for project: 'Browser Developer Extensions'
  1. Browser Developer Extensions
  2. BDE-127

Export current document JSON should return JSON content-type, not HTML

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 3.0.1
    • Component/s: Chrome
    • Tags:
    • Backlog priority:
      400
    • Dev Mode Activated:
      Yes
    • Sprint:
      FTEST - W16, QA - 11.1.1, QA - 11.1.2, QA - 11.1.3
    • Story Points:
      3

      Description

      Selecting "Export current document JSON" opens a new tab with "json.html" with Content-Type: text/html. Semantically, I think this should actually show a JSON response (instead of HTML) so that other browser extensions can format the response (e.g. syntax colouring, folding, wrapping, etc.). There may be some value in having two links: "display HTML" (with current/improved styling) and "display JSON" (providing a pure JSON response), although I think most browsers display JSON responses directly anyway (and for those that want a configurable, formatted JSON display, they can use an additional extension).

      (Note; I'm using BDE version 2.1.1, but the "Affects Version/s" field below only goes up to 2.1.0 ...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.