Skip to content

allow setting maxExpansionDepth for XMLParser to avoid Entity expansion limit exceeded #406

Description

@eleith

after updating to 5.9.0 (and even before, because xml-fast-parser released a breaking change to a minor patch) i'm hitting Entity expansion limit exceeded quite often while using getDirectoryContents with a few hundred objects (not using deep)

this was not the case beforehand because xml-fast-parser defaulted maxTotalExpansions to Infinity. however, now, it is set to 1000.

this conversation upstream is evidence that this error is surprising many others.

webdav users could use a way to configure maxTotalExpansions so they can avoid getting blocked on directory listings.

perhaps an option on WebDAVClientOptions that has a sensible default would go far enough for most people?

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions