Build chokes on & in tag name #2331

Open
opened 2021-11-29 09:47:07 +00:00 by max.mehl · 1 comment
Owner

I tried to have the tag name contain an & in this commit.

In normal text, that works. In our build system, that leads to an error – not on the news item itself but when building the tag page as it seems.

Here an extract from Phase 2 of the build:

[09:20:24] * Building tags/tagged-childrensbook.zh.html
[09:20:24] * Building tags/tags.ar.html
[09:20:24] * Building tags/tags.bg.html
[09:20:24] * Building tags/tags.bs.html
[09:20:24] -:329: parser error : xmlParseEntityRef: no name
[09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za
[09:20:24] ^
[09:20:24] unable to parse -
[09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:44: /srv/www/fsfe.org_stage/tags/tags.ar.html] Error 6
[09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.ar.html'
[09:20:24] make: *** Waiting for unfinished jobs....
[09:20:24] -:336: parser error : xmlParseEntityRef: no name
[09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za
[09:20:24] ^
[09:20:24] unable to parse -
[09:20:24] -:369: parser error : xmlParseEntityRef: no name
[09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za
[09:20:24] ^
[09:20:24] unable to parse -
[09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:47: /srv/www/fsfe.org_stage/tags/tags.bg.html] Error 6
[09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.bg.html'
[09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:50: /srv/www/fsfe.org_stage/tags/tags.bs.html] Error 6
[09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.bs.html'
[09:20:24] 1638177624

Interestingly, the actual tag's page builds fine: [09:20:23] * Building tags/tagged-adaandzangemann.en.html

It's not high priority, but an unexpected behaviour.

I tried to have the tag name contain an `&amp;` in [this commit](https://git.fsfe.org/FSFE/fsfe-website/commit/4243c4fdb027127867ea8c01790778c244856404). In normal text, that works. In our build system, that leads to an error – not on the news item itself but when building the tag page as it seems. Here an extract from Phase 2 of the build: ``` [09:20:24] * Building tags/tagged-childrensbook.zh.html [09:20:24] * Building tags/tags.ar.html [09:20:24] * Building tags/tags.bg.html [09:20:24] * Building tags/tags.bs.html [09:20:24] -:329: parser error : xmlParseEntityRef: no name [09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za [09:20:24] ^ [09:20:24] unable to parse - [09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:44: /srv/www/fsfe.org_stage/tags/tags.ar.html] Error 6 [09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.ar.html' [09:20:24] make: *** Waiting for unfinished jobs.... [09:20:24] -:336: parser error : xmlParseEntityRef: no name [09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za [09:20:24] ^ [09:20:24] unable to parse - [09:20:24] -:369: parser error : xmlParseEntityRef: no name [09:20:24] <tag section="news" key="adaandzangemann" count="1" filename="tags">Ada & Za [09:20:24] ^ [09:20:24] unable to parse - [09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:47: /srv/www/fsfe.org_stage/tags/tags.bg.html] Error 6 [09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.bg.html' [09:20:24] make: *** [/srv/www/status.fsfe.org/fsfe.org/Makefile:50: /srv/www/fsfe.org_stage/tags/tags.bs.html] Error 6 [09:20:24] make: *** Deleting file '/srv/www/fsfe.org_stage/tags/tags.bs.html' [09:20:24] 1638177624 ``` Interestingly, the actual tag's page builds fine: `[09:20:23] * Building tags/tagged-adaandzangemann.en.html` It's not high priority, but an unexpected behaviour.
max.mehl added the
bug
tagging
xsl
build
labels 2021-11-29 09:47:07 +00:00
Owner

In xml files the build system chokes as well on an & in the text.

In xml files the build system chokes as well on an `&` in the text.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#2331
No description provided.