jcorporation / myMPD

myMPD is a standalone and mobile friendly web mpd client with a tiny footprint and advanced features.
https://jcorporation.github.io/myMPD/
GNU General Public License v3.0
419 stars 65 forks source link

Search input problems #718

Closed Hajuskin closed 2 years ago

Hajuskin commented 2 years ago

myMPD version: 9.2.2 Describe the bug

Perform a search in the queue tab and confirm the search term with enter. The search term should disapear. Now press backspace, then this error appears: "Value length for JSON path "$.params.searchstr" is too short" 2022-03-26_014356

**Debug logs (please attach if it can be usefull)**
INFO     webserver API request (47): MYMPD_API_QUEUE_SEARCH
DEBUG    mympdapi  Leaving mpd idle mode
DEBUG    mympdapi  Handle request
INFO     mympdapi  MYMPD API request (47)(0) MYMPD_API_QUEUE_SEARCH: {"jsonrpc":"2.0","id":0,"method":"MYMPD_API_QUEUE_SEARCH","params":{"offset":0,"limit":250,"filter":"any","searchstr":"","cols":["Title","Artist","Album","Duration","Date","Genre"]}}
WARN     mympdapi  Value length for JSON path "$.params.searchstr" is too short
ERROR    mympdapi  Error processing method "MYMPD_API_QUEUE_SEARCH"

 mympdapi  Push response to web_server_queue for connection 47: {"jsonrpc":"2.0","id":0,"error":{"method":"MYMPD_API_QUEUE_SEARCH","facility":"general","severity":"error","message":"Value length for JSON path \"$.params.searchstr\" is too short","data":{}}}
DEBUG    mympdapi  Entering mpd idle mode
jcorporation commented 2 years ago

Regression of #686, is now fixed in devel. Please test.

Hajuskin commented 2 years ago

Works fine!