-
Notifications
You must be signed in to change notification settings - Fork 35
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
Case sensitivity requires all-or-nothing validation #51
Comments
Sorry. We don't have enough documentation for it in English.
I think that "disabling validation of specific attributes" isn't a good approach. If we have it, users can't trust parsed result. (Invalid value may be included.) Adding support for preparer may be a good approach. For example:
Could you ask Apple to clarify this? If the specification clarifies it, we can follow it. Related pages: |
That's a nice idea, flexible and easy to point at specific known issues like this one!
I will try :-) |
I am continuing to follow up with Apple, who, as you might have expected, so far have just provided basic information about "here's how to publish a podcast" and "we can't comment on third part software". In the meantime, more prominent publishers including Google (e.g. https://feeds.libsyn.com/419861/rss ) have rss feeds that include, for example <itunes:episodeType>full</itunes:episodeType> This is breaking more of our integrations with major partners as a result of upgrading from 0.28 that was included by default in Ruby 2.7. The consequence of the current code, even though we don't care about this field in our integration, is that we are unable to parse the RSS feed, and an exception is raised instead. For the time being I will be looking into a monkey patch, as this is a major strain our existing customer. But I do implore you to consider allowing more lenient behavior, such as ignoring fields, adding custom parsers or preprocessors, or modifying this particular validation to match what is seen in the real world. As you have stated, a custom pre-processor is a pretty good solution; however do note that this is still a breaking change for folks upgrading from 0.28 / Ruby 2.7. |
I just got this back from Apple after sending another ping:
[...]
Therefore I believe the correct move is to follow Apple's text here and allow lowercase values. |
Wow! OK. Let's accept |
I am also running into the issue brought up in #48. Speciically, I am working with a partner whose rss feed contains
This causes parse validation to fail. @kou has advised to disable validation in this case; is this possible to do on just this attribute, or is validation all-or-nothing? Suggesting clients disable all validation because of a common casing issue present in RSS feeds of well-known publishers is a bit impractical and opens the door to many validation bugs.
My ask is that:
RSS::Parser.parse(content, validate: false)
)The text was updated successfully, but these errors were encountered: