public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 0/2] glep-0068: Stricten the XML format
@ 2022-10-08  6:40 Michał Górny
  2022-10-08  6:40 ` [gentoo-dev] [PATCH 1/2] glep-0068: Clarify and restrict XML data format Michał Górny
  2022-10-08  6:40 ` [gentoo-dev] [PATCH 2/2] glep-0068: Indicate that unknown elements should be ignored Michał Górny
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Górny @ 2022-10-08  6:40 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny

Hi,

The spec is a bit lax about the XML features allowed.  However, we don't
really expect people to use fancy features like custom entities,
XInclude, etc.  Let's formally stricten the spec to disallow anything
remote or potentially dangerous to at least protect implementations
from the most common XML security problems.

While at it, let's make it clear that while we don't permit elements
outside the spec in metadata.xml files, we may add new elements or
attributes in future versions.

I'm not sure whether we should be increasing the version number here.
On one hand, the change roughly matches the original intent (i.e. no
metadata.xml files should be broken by it, and implementation should not
have been processing external DTDs or anything like that anyway).
On the other, technically speaking the new version is more restrictive
than the old one, so a major version bump would be correct.

WDYT?


Michał Górny (2):
  glep-0068: Clarify and restrict XML data format
  glep-0068: Indicate that unknown elements should be ignored

 glep-0068.rst | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

-- 
2.38.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-08  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08  6:40 [gentoo-dev] [PATCH 0/2] glep-0068: Stricten the XML format Michał Górny
2022-10-08  6:40 ` [gentoo-dev] [PATCH 1/2] glep-0068: Clarify and restrict XML data format Michał Górny
2022-10-08  6:40 ` [gentoo-dev] [PATCH 2/2] glep-0068: Indicate that unknown elements should be ignored Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox