Giter VIP home page Giter VIP logo

Comments (5)

bernhardreiter avatar bernhardreiter commented on June 16, 2024 1

@bernhardreiter: Where did you get the information from that it should fulfill all ISO 8601 profiles?

Good catch, I've checked the CSAF-2.0 documentation, which does not explicitely refer to datetime standards, so I'd assumed that in absence of mentioning it, ISO 8601 would be a real-world expectation as it is a normative reference. I've made the mistake of not checking the ROLIE standards! Thanks for pointing it out.

@sthagen the problem is not the Z, but the missing ":" time-second, which is mandatory in

partial-time    = time-hour ":" time-minute ":" time-second

@s-l-teichmann we could improve that checker message, I think, but this is worth to be handled elsewhere.

Invalid, ROLIE datetimes MUST adhere to RFC3339

from csaf_distribution.

s-l-teichmann avatar s-l-teichmann commented on June 16, 2024

@bernhardreiter: Where did you get the information from that it should
fulfill all ISO 8601 profiles?

From ROLIE RFC

https://datatracker.ietf.org/doc/html/rfc8322#section-6.1.3
does not say it explicitely.

https://datatracker.ietf.org/doc/html/rfc8322#section-7.4
mentions is explicitely

urn:ietf:params:rolie:property:content-updated-date
      The "value" attribute of this property is a text representation
      indicating the date that the content, referenced by the "src"
      attribute of the Entry's "atom:content" element, was last updated.
      This date may differ from the updated date of the ROLIE Entry
      because updates made to the content and to the ROLIE Entry are
      different events.  The date MUST be formatted as specified in
      [[RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)].

But RFC3339 is a normative reference, we believe it must be [RFC3339]
which the code enforces.

from csaf_distribution.

sthagen avatar sthagen commented on June 16, 2024

Well, https://datatracker.ietf.org/doc/html/rfc3339#section-5.6 provides z and Z … as that simplified profile of ISO-8601 modern RFCs should use 😉

from csaf_distribution.

bernhardreiter avatar bernhardreiter commented on June 16, 2024

To be more precise the ROLIE specification lists RFC3339 as normative reference, which we interpret in the sense that all datetime values MUST use that format. (Even if it is only mentioned explicitely in section https://datatracker.ietf.org/doc/html/rfc8322#section-7.4 for The "rolie:property" Extension Point. (I've edited @s-l-teichmann comment above accordingly.))

from csaf_distribution.

bernhardreiter avatar bernhardreiter commented on June 16, 2024

As followup I've suggest that CSAF moves to RFC3339 with UTC only in oasis-tcs/csaf#469

from csaf_distribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.