Skip to content

Search plugin freezes if some WFS request fails #12840

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions