ckan / ckan/ckanext-spatial

WAF Harvester parsing issues

Open
#309 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
XSLT
Stars
136
Forks
207
PR merge metrics
No merged PRs in 30d

Description

WAF harvesting can fail to parse on numerous things which are a de facto a WAF, such as this listing: https://gcoos4.tamu.edu/erddap/metadata/iso19115/xml/

Because the harvester is looking explicitly for "a href", anything that doesn't exactly follow that string ordering will fail to harvest? Is there any reason why a proper XML parsing library isn't used when finding links instead of using a parsing library, which has known pitfalls when parsing XML?

Also, on the above link, the "apache" parser is used due to the "Server" header, even though this is clearly not an Apache directory listing, but rather a reverse proxied application. This was difficult to track down when I had to create custom logic for the "other" parser to account for some of the shortcomings of the WAF parser mentioned above.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the WAF harvester's link detection and parser-selection logic, then compare its behavior with the linked ISO 19115 XML listing. Determine how link extraction and the Server header affect parser choice; done when this listing is harvested correctly without requiring custom logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, xml
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.