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

Problems with search field for Release on search page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • None
    • None

      Go to http://musicbrainz.org/search/edits. Select "Release", and put in any release's title. Hit search. Now look at the url.

      Using Pearl Jam's Ten as example, the url includes: &conditions.0.name=Ten&conditions.0.=06fc304e-d70a-4846-93e5-544d6aa618d6

      Notice that the mbid argument is missing anything after the "0.". Also, the .name argument seems to be required, but can be anything.

      Changing it to &conditions.0.name=four&conditions.0.=06fc304e-d70a-4846-93e5-544d6aa618d6 works fine; it loads the search results for Ten. Only the displayed name of the release in the edit search fields is incorrect (displaying "four").

      However, if you omit the name argument, the search fails, with a 502 Bad Gateway.

      Last, trying a lookup of Ten, without using the js to actually identify which "Ten". This should lookup every Ten; instead, it fails, giving an "Oops! It seems your search parameters are not correct, please double check your input!" error message. A few problems here: First, note that the condition selected in the search was 'release = Ten', but the resulting search form has replaced the "Release" field with an empty "ID" field. Additionally, notice that this one puts the error in the wrong place - in the example url (below), the error text is below the problem field, not at the top. Last, if you also leave the type parameter unselected, you redundantly get the error text twice, once below each field.

      So there's an argument with an incorrect name, as well as an argument which is manditory that looks like it's entirely ignored except for template use, but which otherwise isn't helpful.

      Original search ("Ten")
      http://musicbrainz.org/search/edits?auto_edit_filter=&order=desc&negation=0&combinator=and&conditions.0.field=release&conditions.0.operator=%3D&conditions.0.name=Ten&conditions.0.=06fc304e-d70a-4846-93e5-544d6aa618d6&conditions.0.args.0=515675&conditions.1.field=type&conditions.1.operator=%3D&conditions.1.args=31%2C216&field=Please+choose+a+condition

      Modified search ("four")
      http://musicbrainz.org/search/edits?auto_edit_filter=&order=desc&negation=0&combinator=and&conditions.0.field=release&conditions.0.operator=%3D&conditions.0.name=four&conditions.0.=06fc304e-d70a-4846-93e5-544d6aa618d6&conditions.0.args.0=515675&conditions.1.field=type&conditions.1.operator=%3D&conditions.1.args=31%2C216&field=Please+choose+a+condition

      Modified search (no name argument)
      http://musicbrainz.org/search/edits?auto_edit_filter=&order=desc&negation=0&combinator=and&conditions.0.field=release&conditions.0.operator=%3D&conditions.0.=06fc304e-d70a-4846-93e5-544d6aa618d6&conditions.0.args.0=515675&conditions.1.field=type&conditions.1.operator=%3D&conditions.1.args=31%2C216&field=Please+choose+a+condition

      Ten not resolved to an mbid:
      http://musicbrainz.org/search/edits?auto_edit_filter=&order=desc&negation=0&combinator=and&conditions.0.field=release&conditions.0.operator=%3D&conditions.0.name=Ten&conditions.0.args.0=&conditions.1.field=type&conditions.1.operator=%3D&conditions.1.args=31%2C216&field=Please+choose+a+condition

      Ten not resolved to an mbid and no edit type specified:
      http://musicbrainz.org/search/edits?auto_edit_filter=&order=desc&negation=0&combinator=and&conditions.0.field=release&conditions.0.operator=%3D&conditions.0.name=Ten&conditions.0.=&conditions.0.args.0=&conditions.1.field=type&conditions.1.operator=%3D&field=Please+choose+a+condition

            Unassigned Unassigned
            brianfreud Brian Schweitzer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package