Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.7
-
Fix Version/s: 1.10.8
-
Component/s: Zend_Feed_Writer
-
Labels:None
Description
When using Zend_Feed_Writer to create an Atom feed and attempting to use a tag URI such as:
tag:example.org,2010:/foo/bar/
The following exception is raised:
"Atom 1.0 IDs must be a valid URI/IRI"
Please allow tag URIs to be used as Atom Entry IDs within Zend_Feed_Writer as these are valid URIs. There are probably other valid URIs that are incorrectly marked as invalid as well since Zend_Feed_Writer appears to only consider Uniform Resource Name (URN) URIs to be valid, but URN is only a subset of URI.
For reference:
Hey Bradley,
Unfortunately Zend_Uri (used for validation in Zend_Feed and almost everywhere else in ZF for URIs) is essentially Zend_Url - so all URIs outside of URLs and URNs (already a custom addition) require custom validation code. It's something I'm monitoring for ZF2 whenever someone starts digging into Zend\Uri. I'll see what support can be added on an ad-hoc basis over the weekend, though it will be limited to tag: and a few others of more common interest.