Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14581] XMLParserDelegate: When choosing not to resolve external parsed entities, their definitions are not reported #4212

Open
swift-ci opened this issue May 4, 2021 · 1 comment

Comments

@swift-ci
Copy link
Contributor

swift-ci commented May 4, 2021

Previous ID SR-14581
Radar rdar://problem/77526339
Original Reporter Stefan Springer (JIRA User)
Type Bug
Environment

Swift 5.4 on macOS 11.3 on Apple Silicon

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 27cd04167811fd6566b06413b359b4ac

Issue Description:

Using XMLParserDelegate, if you want external parsed entities not to be resolved but would like their definitions to be reported, you have to set:

xmlParser.shouldResolveExternalEntities = true

xmlParser.externalEntityResolvingPolicy = XMLParser.ExternalEntityResolvingPolicy.never

See the small Github repository https://github.com/stefanspringer1/SwiftXMLParserExamples for reference.

Somehow this combination looks like a contradiction.

Possible solution:

Always report the definition of external parsed entities.

Related issues:

https://bugs.swift.org/browse/SR-14582

https://bugs.swift.org/browse/SR-14583

https://bugs.swift.org/browse/SR-14584

https://bugs.swift.org/browse/SR-2301

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants