Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10185

/ws/2/isrc/<isrc>?fmt=json ignores inc=artists and inc=releases, where fmt=xml does not

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web service
    • Labels:
      None

      Description

      The documentation for the /isrc endpoint states:

      isrc lookups return a list of recordings, the 'inc=' arguments supported are identical to a lookup request for a recording.

      Unfortunately this doesn't work when fmt=json is added to the query, at least not for artists and releases. Compare the (default fmt=xml response with the JSON response:

      and, for reference, the recording this ISRC is attached to:

      In the XML-formatted response, theĀ <recording id="7b6873d9-c7c5-4568-884f-96660e8e4528"> element contains the exact same information in both responses, the only difference being that the /isrc response has wrapped that element inside the <isrc id="USAR19200262"><recording-list count="1">...</recording-list></isrc> structure.

      Strangely enough, /isrc/<isrc>?fmt=json&inc=isrcs works (the isrcs array is added to the release object), but not when asking for an XML response. Then the service just.. hangs until it times out. Perhaps a related issue?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mjpieters Martijn Pieters
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package