Skip to content

Global Identify configuration with HTML format throws an error with WFS layer #12752

Description

@allyoucanmap

Description

The support for HTML format in WFS was included in this PR #10234 for GeoServer backend that included wfs-freemarker-plugin community module in the deploy. When HTML format is selected in the global identify the WFS layers throw an error when the html format is not supported.
A layer may include the infoFormats property so we could use this information to prevent unsupported requests. Note that infoFormats isn't persisted in the configuration by design so we may need an additional WFS getSupportedFormat (api/WFS) cached by url when we trigger the map info (getSupportedFormat should already cache the request internally, needs a double check). Also when possible we should make the url request to the specific layers path using getCapabilitiesUrl inside utils/LayersUtils.js

How to reproduce

  • open a new map
  • add a WFS layer coming from a GeoServer without the wfs-freemarker-plugin
  • in the global settings change the info format to HTML
  • click on a feature of the layer

Expected Result

The GetFeature result is showed in the Identify

Current Result

An error shows up in the Identify

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

We need to check the format validity before making the identify request, probably it's enough to make the check only when the format is text/html

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. added this to the 2026.02.02 milestone on Jul 30, 2026
  2. added theissue type on Jul 30, 2026
  3. added a commit that references this issue on Aug 4, 2026
  4. allyoucanmap commented on Aug 4, 2026

    @allyoucanmap
    ContributorAuthor

    @ElenaGallo please test this fix on dev, thanks

  5. added a commit that references this issue on Aug 6, 2026
  6. modified the milestones: 2026.02.02, 2026.02.01 on Aug 10, 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