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

Preserve gender, type and ended flag when missing from artist edit POST request

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Edit system
    • Labels:
      None

      Description

      curl "https://test.musicbrainz.org/artist/0c659e4c-1e77-491e-85f9-81f0e613657a/edit" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.5" -H "Referer: https://test.musicbrainz.org/artist/0c659e4c-1e77-491e-85f9-81f0e613657a/edit" -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: https://test.musicbrainz.org" -H "DNT: 1" -H "Connection: keep-alive" -H "Cookie: filter=; bottom-credits=0; server_details_dismissed_mtime=1563287568; alert_dismissed_mtime=1563287568; guesscase_keepuppercase=true; guesscase_roman=false; musicbrainz_server_session=899d64e9e00c2958eaa3b10b15c68c189cdd3121" -H "Upgrade-Insecure-Requests: 1" -H "Pragma: no-cache" -H "Cache-Control: no-cache" -H "TE: Trailers" --data "edit-artist.name="%"E5"%"8F"%"B8"%"E9"%"A9"%"AC"%"E7"%"9B"%"B8"%"E5"%"A6"%"82&edit-artist.sort_name=Sima"%"2C+Xiangru&edit-artist.edit_note=&edit-artist.make_votable=1"

      Above command created https://test.musicbrainz.org/edit/5946

      As you can see gender, type and the ended flag are modified even though I did not intended it.

       Below command created the edit as expected: https://test.musicbrainz.org/edit/5947

      curl "https://test.musicbrainz.org/artist/0c659e4c-1e77-491e-85f9-81f0e613657a/edit" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.5" -H "Referer: https://test.musicbrainz.org/artist/0c659e4c-1e77-491e-85f9-81f0e613657a/edit" -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: https://test.musicbrainz.org" -H "DNT: 1" -H "Connection: keep-alive" -H "Cookie: filter=; bottom-credits=0; server_details_dismissed_mtime=1563287568; alert_dismissed_mtime=1563287568; guesscase_keepuppercase=true; guesscase_roman=false; musicbrainz_server_session=899d64e9e00c2958eaa3b10b15c68c189cdd3121" -H "Upgrade-Insecure-Requests: 1" -H "Pragma: no-cache" -H "Cache-Control: no-cache" -H "TE: Trailers" --data "edit-artist.name="%"E5"%"8F"%"B8"%"E9"%"A9"%"AC"%"E7"%"9B"%"B8"%"E5"%"A6"%"82&edit-artist.sort_name=Sima"%"2C+Xiangru&edit-artist.type_id=1&edit-artist.gender_id=1&edit-artist.period.ended=1&edit-artist.edit_note=&edit-artist.make_votable=1"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chaban chaban
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package