Skip to content

Metadata extraction fails on unbound prefixes (e.g. gcse:search) during DTS publish #4

Description

@natechadwick-intsof

Summary

Metadata extraction fails on published HTML with unbound prefixes (e.g. Google CSE):

SAXParseException: The prefix "gcse" for element "gcse:search" is not bound
PSMetadataDeliveryHandler / PSMetadataExtractorService (RDFa / Semargl)

File publish may still succeed; metadata for that item errors.

Proposed fix

Lenient handling: sanitize/strip unknown prefixes or catch parse errors, WARN with path, do not fail entire extraction hard for third-party tags. Unit test with <gcse:search> fixture.

Workaround

Fix/remove CSE markup on the page (e.g. error.html) and re-publish.

Related

Activity

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions