google / cap-library

Common Alerting Protocol Library
Apache License 2.0
84 stars 26 forks source link

Validation error on recommended RSS author tag #47

Closed sschiavoni closed 9 years ago

sschiavoni commented 9 years ago

Original issue 48 created by shakusa@google.com on 2014-01-13T14:50:29.000Z:

From Eliot Christian:

I've noticed that the CAP validator throws an error on the e-mail format that is recommended in RSS feeds: address (name) http://cyber.law.harvard.edu/rss/rss.html#ltauthorgtSubelementOfLtitemgt

The attached is an example RSS feed, and you will see I get errors on every "author" element.

I used to use just the e-mail address without a name, but I have encountered many cases wherein lots of people use the same, organizational e-mail address. Only the name part distinguishes to whom a particular e-mail message is actually directed.

sschiavoni commented 9 years ago

Comment #1 originally posted by shakusa@google.com on 2014-01-13T14:51:10.000Z:

Error looks like:

cvc-pattern-valid: Value 'meteo.rwanda@gmail.com (Meteo Rwanda)' is not facet-valid with respect to pattern '([a-zA-Z0-9-])([a-zA-Z0-9-.]*)@([((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]).){3}|((([a-zA-Z0-9-]+).)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])])' for type 'EmailAddress'. 23
cvc-type.3.1.3: The value 'meteo.rwanda@gmail.com (Meteo Rwanda)' of element 'author' is not valid.

sschiavoni commented 9 years ago

Comment #2 originally posted by shakusa@google.com on 2014-02-17T22:51:02.000Z:

What needs to change is the pattern for EmailAddress here: https://code.google.com/p/cap-library/source/browse/schema/feed/rss-2_0.xsd# 385

sschiavoni commented 9 years ago

This bug will be fixed in the next release.