You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Identify: It sometimes select an empty option in the layer selector #12666
The selected layer is defined by the attribute "index" in the reducer "mapInfo".
Security vulnerabilities
Do not report security vulnerabilities in public issues.
If you believe you have found a vulnerability in MapStore, please use GitHub private vulnerability reporting or contact the security address listed in SECURITY.md.
@tdipisa I could reproduce this in current master.
The probable cause for this maybe due to how valid responses from getFeatureInfo request is stored for each layer. GetMapInfo responses are asynchronous by nature and problem is happening because invalid response is not properly replaced by valid responses.
Root Cause
GetMapInfo Responses arrive asynchronously and are inserted by request position.
The reducer only repairs an invalid retained index when the previous state already has loaded: true
When the final response arrives, that reducer makes loaded: true, but checks state.loaded, which is still false. With no later response, the invalid index is never corrected
Possible fix
Need to properly handle replacement of invalid state when valid data is received
Activity
tdipisa commentedon Jul 16, 2026
@Gaelle-CGI thank you for reporting. I'm not able to reproduce at the moment. Probably this issue is not always reproducible for some reason.
A quick check on that would be definitely a good thing to do.
Binabh commentedon Jul 23, 2026
@tdipisa I could reproduce this in current master.
The probable cause for this maybe due to how valid responses from getFeatureInfo request is stored for each layer. GetMapInfo responses are asynchronous by nature and problem is happening because invalid response is not properly replaced by valid responses.
Root Cause
loaded: truePossible fix
#12666 Identify: It sometimes select an empty option in the layer sel…