Error
- mwversion: undefined
- reqId: undefined
- Find reqId in Logstash
- Find normalized_message in Logstash
Callstack: at a.performNewSearch https://commons.wikimedia.org/w/load.php?lang=en&modules=jquery,mediasearch&skin=vector&version=2rz3d:235:50 at Array.<anonymous> <anonymous>:294:746 at a.dispatch <anonymous>:296:459 at a.dispatch <anonymous>:292:122 at a.n.<computed> <anonymous>:298:777 at a.onTermOrFilterChange https://commons.wikimedia.org/w/load.php?lang=en&modules=jquery,mediasearch&skin=vector&version=2rz3d:189:881 at allActiveFilters https://commons.wikimedia.org/w/load.php?lang=en&modules=jquery,mediasearch&skin=vector&version=2rz3d:190:218 at fn.run <anonymous>:327:738 at un <anonymous>:325:749 at Array.<anonymous> <anonymous>:312:430
Impact
The user is unable to search for an empty search term. Clicking the X to clean the result still works
Reproducible steps
Scenario 1
- Access Special:MediaSearch
- Search term (eg cat)
- Wait for the result to show
- Now manually remove the search term (do not use the X)
- Search again
Expected
- The search result should be cleaned up
Actual
- An error is triggered and the Ui does not change from the previous search
Scenario 2
- Access Special:MediaSearch
- Search term (eg cat)
- Wait for the result to show
- Now manually remove the search term (do not use the X)
- Search again (empty result)
- Change a filter
Expected
- There should be no errors in the Console
Actual
- An error is triggered
Scenario 3
- Access Special:MediaSearch
- Search term (eg cat)
- Wait for the result to show
- Now manually remove the search term (do not use the X)
- Search again (empty result)
- Change a Tab
Expected
- There should be no errors in the Console
Actual
- An error is triggered