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

Batch adding relationships silently fail when sources and targets overlap

XMLWordPrintable

      When batch adding remix relationships by selecting all recordings which includes the source entity none will be added and silent error occurs:
      https://musicbrainz.org/release/15015ec5-4970-4c14-9a3c-7ba79ff1eb4a/edit-relationships

      {
         "exception":{
            "values":[
               {
                  "type":"Error",
                  "value":"Invalid relationship source",
                  "stacktrace":{
                     "frames":[
                        {
                           "colno":201832,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"?",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":145529,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Hi",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":204204,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"lu",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":207038,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"gu",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":207175,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"vu",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":207247,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"bu",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":218906,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"_l",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":182058,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Is",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":161227,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"wo",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":49420,
                           "filename":"https://static.metabrainz.org/MB/release/edit-relationships-0736565.js",
                           "function":"jr",
                           "in_app":true,
                           "lineno":1
                        },
                        {
                           "colno":234692,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"IAYK87R.t.useReducer",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":162503,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Object.To [as useReducer]",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":888370,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"?",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":40028,
                           "filename":"https://static.metabrainz.org/MB/release/edit-relationships-0736565.js",
                           "function":"?",
                           "in_app":true,
                           "lineno":1
                        },
                        {
                           "colno":1052500,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"F",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1050446,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Object.n",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577058,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.next",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577748,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.<anonymous>",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1578401,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"C",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1576629,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"f",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577058,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.next",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577748,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.<anonymous>",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1578401,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"C",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1576629,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"f",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577058,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.next",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1577971,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"Generator.<anonymous>",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1576629,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"f",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":972811,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"?",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":961091,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"oe",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1035410,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"A",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1041347,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"i",
                           "in_app":true,
                           "lineno":2
                        },
                        {
                           "colno":1088496,
                           "filename":"https://static.metabrainz.org/MB/common-chunks-ae79ad0.js",
                           "function":"i",
                           "in_app":true,
                           "lineno":2
                        }
                     ]
                  },
                  "mechanism":{
                     "handled":true,
                     "type":"generic"
                  }
               }
            ]
         },
         "level":"error",
         "event_id":"3aee237d43f84627b4b1ca02198ec845",
         "platform":"javascript",
         "sdk":{
            "name":"sentry.javascript.browser",
            "packages":[
               {
                  "name":"npm:@sentry/browser",
                  "version":"5.10.2"
               }
            ],
            "version":"5.10.2",
            "integrations":[
               "InboundFilters",
               "FunctionToString",
               "TryCatch",
               "Breadcrumbs",
               "GlobalHandlers",
               "LinkedErrors",
               "UserAgent"
            ]
         },
         "environment":"production",
         "release":"d33af46689",
         "user":{
            "id":561161,
            "username":"chaban"
         },
         "breadcrumbs":[
            {
               "timestamp":1718083298.785,
               "category":"ui.click",
               "message":"div#page.fullwidth. > div#content.rel-editor > div.release-relationship-editor"
            },
            {
               "timestamp":1718083298.788,
               "category":"ui.click",
               "message":"body"
            },
            {
               "timestamp":1718083298.885,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/type-info/link_attribute_type",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083298.951,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/type-info/link_type",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083299.006,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/type-info/series_type",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083299.084,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/type-info/language",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083299.167,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/type-info/work_type",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083300.328,
               "category":"ui.click",
               "message":"table#tracklist.tbl > thead > tr > th.recordings"
            },
            {
               "timestamp":1718083300.698,
               "category":"ui.click",
               "message":"thead > tr > th.recordings > input.all-recordings[type=\"checkbox\"]"
            },
            {
               "timestamp":1718083301.235,
               "category":"ui.click",
               "message":"button.add-item.with-label.batch-add-recording-relationship[type=\"button\"]"
            },
            {
               "timestamp":1718083301.278,
               "category":"fetch",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/entities/artist/abe30b28-82ef-48e0-998b-946f64390727+49e68398-8e39-464d-8070-a9ce8e3e0b4d+bf33b9ed-92f0-436b-826d-c1b882e2fa24+fe0959fd-ae22-4316-8382-83fe2f2c64d8+28fc3e4a-74c1-4ad7-8990-0e9d3f99048e+cfbc46d4-9846-4749-920e-4a70bbc11dc4+a2814149-0b8c-46a3-8146-8f819046076e+672c874a-e4db-4477-8dbb-04476dc2af82+0bc23e9b-1f2f-4cd5-a11b-9998949e2a60+ce44035d-ac9f-4db4-8fb1-a2a0046454c6",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083301.799,
               "category":"ui.click",
               "message":"input#relationship-target--29.relationship-target.required[type=\"text\"]"
            },
            {
               "timestamp":1718083301.966,
               "category":"xhr",
               "data":{
                  "method":"GET",
                  "url":"/ws/js/entity/9409dbdd-14cf-4067-b69e-ba4aae9dc25b",
                  "status_code":200
               },
               "type":"http"
            },
            {
               "timestamp":1718083302.3,
               "category":"ui.click",
               "message":"input#relationship-type-artist-recording--29.relationship-type.required[type=\"text\"]"
            },
            {
               "timestamp":1718083302.764,
               "category":"ui.click",
               "message":"ul#relationship-type-artist-recording--29-menu"
            },
            {
               "timestamp":1718083303.206,
               "category":"ui.click",
               "message":"li#relationship-type-artist-recording--29-item-230-recent.highlighted.option-item."
            }
         ],
         "request":{
            "url":"https://musicbrainz.org/release/15015ec5-4970-4c14-9a3c-7ba79ff1eb4a/edit-relationships",
            "headers":{
               "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
            }
         }
      }
      

            bitmap Michael Wiencek
            chaban chaban
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2024-07-11