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

CD Stub track count not serialized correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2016-12-19
    • Component/s: Web service
    • Labels:
      None

      Description

      Happens for both XML and JSON; in JSON, "track-count: null" is emitted, and in XML, there is no "track-count" attribute on the <track-list>.

      The problem seems to be that both the CDStubTOC and CDStub have a track_count property; the one from CDStub is serialized, but it's the one from CDStubTOC that contains the actual track count.

      Because I don't know whether or not the track_count from CDStub is ever really used, I'll just add a fallback to the other one.

        Attachments

          Activity

            People

            • Assignee:
              zastai Tim Van Holder
              Reporter:
              zastai Tim Van Holder
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: