Skip to content

Search plugin freezes if some WFS request fails #12840

Closed

Description

@stefanocudini

Description

This issue occurs when the search plugin is configured with multiple WFS endpoints.
When performing a global search with the "Search Tools" button,
remote requests are initiated in parallel for all WFS endpoints.

How to reproduce

This issue occurs when the search plugin is configured with multiple WFS endpoints.

Image

Sample of plugin search configuration to replicate issue:

{
        "name": "Search",
        "cfg": {
          "withToggle": ["max-width: 768px", "min-width: 768px"],
          "searchOptions": {
              "bottomMenuServices": false,
              "services": [
                {
                  "type": "nominatim"
                },
                {
                    "type": "wfs",
                    "name": "wfs",
                    "displayName": "{bla}",
                    "subTitle": "",
                    "priority": 1,
                    "options": {
                        "url": "/geoservers/wfs",
                        "typeName": "bla",
                        "queriableAttributes": [
                            "name"
                        ],
                        "sortBy": "",
                        "maxFeatures": 5,
                        "srsName": "EPSG:4326"
                    }
                },
                {
                    "type": "wfs",
                    "name": "BROKEN",
                    "displayName": "broken",
                    "subTitle": "broken wfs",
                    "priority": 1,
                    "options": {
                        "url": "/geoservers/broken",
                        "typeName": "bla",
                        "queriableAttributes": [
                            "broken"
                        ],
                        "sortBy": "",
                        "maxFeatures": 5,
                        "srsName": "EPSG:4326"
                    }
                }
              ]
          }
        }
      }

Expected Result
show always results

Current Result
If one of the endpoints fails for any reason, the display of any results is blocked; the results provided by the responding endpoints are not displayed.

Other useful information

map resource with multiple WFS:
https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/62382

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.

Activity

  1. changed the title [-]Search plugin freezes on WFS request failure[/-] [+]Search plugin freezes if some WFS request fails[/+] on Aug 28, 2026
  2. stefanocudini commented on Aug 28, 2026

    @stefanocudini
    MemberAuthor

    NOTE:
    it could be this request here https://github.com/geosolutions-it/MapStore2/blob/master/web/client/epics/search.js#L87-L90
    there is not a catch per request on serviceInstance just a global one

  3. added this to the 2026.03.00 milestone on Aug 28, 2026
  4. modified the milestones: 2026.03.00, 2026.02.02 on Sep 3, 2026
  5. added theissue type on Sep 3, 2026
  6. added a commit that references this issue on Sep 17, 2026
    fd27bdd
  7. self-assigned this
    on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions