Page MenuHomePhabricator

Lilypond include files not supported in safe mode, breaking rendering of 'ancient' notations
Closed, ResolvedPublicBUG REPORT

Description

What happens?:

The musical scoring fails to render with Unable to compile LilyPond input file, giving an error

line 1 - column 10:
include files are not allowed in safe mode

This is followed by other errors resulting from the lack of support for the additional commands.

What should have happened instead?:

The example should have rendered per the commands detailed in the lillypond documentation :-
http://lilypond.org/doc/v2.19/Documentation/notation/typesetting-gregorian-chant

Event Timeline

• Aklapper renamed this task from Lillypond include files not supported in safe mode, breaking rendering of 'ancient' notations. to Lillypond include files not supported in safe mode, breaking rendering of 'ancient' notations.Aug 25 2021, 8:10 AM
• Aklapper updated the task description. (Show Details)
Legoktm added a project: Upstream.
Legoktm subscribed.

This will need to be filed upstream, to allow usage of gregorian.ly in safe mode.

@ShakespeareFan00: Please feel free to report this to upstream at https://gitlab.com/lilypond/lilypond/-/issues (and link to it from here) - thanks!

Lillypond's response to the Safe mode issues was to not provide the safe mode at all - https://gitlab.com/lilypond/lilypond/-/merge_requests/1522 :(

Looks like the Score extension will have to be completely re-written if we want it to be secure in a Mediawiki environment. :(

So does this need to be moved back to "Backlog"? Wikisource has a fair number of transcriptions hanging on this resolution, including some which were already finished and proofread before the "Score" problems were noticed and now won't display. What needs to be disabled for security?

BTW, can we edit the title to say "Lilypond" with one "l", for ease of searching? I think that's just a typo.

Legoktm renamed this task from Lillypond include files not supported in safe mode, breaking rendering of 'ancient' notations to Lilypond include files not supported in safe mode, breaking rendering of 'ancient' notations.Sep 4 2022, 1:48 AM
Legoktm added a subtask: Restricted Task.

We don't have a plan yet for what to do about the removal of safe mode, T314884 is a security ticket for discussing it, I hope we can discuss it publicly soon though.

For context, we removed safe mode because it was an attractive nuisance -- claiming to be secure, but actually very much insecure. We evaluated options to fix it, but the conclusion was that we couldn't do that without a wholesale rewrite of LilyPond. We're sorry for the inconvenience. Please trust us that this was the best path forward.

I'm not in the least questioning your judgement. Thank you for all the work you've put into this, and apologies if I've asked questions that can't be publicly answered. If Lilypond has seriously intractable security problems, would the LGPL Verovio be useful? It renders SVG scores from MEI, MusicXML/~MNX, **kern, and Plaine and Easie. MEI is an academic format that strives to be cross-cultural, so should handle archaic notation.

We have a broader problem in that currently, music is often transcribed repeatedly in multiple languages, like what used to happen with multiple uploads of images before Commons was created. It is currently not possible to upload music scores to Commons: T208494: Allow music scores to be uploaded to Wikimedia Commons. A community discussion went over the available software fairly throughly (fairly obvious conclusion: participants would appreciate almost any format). Devs of some of the software (including Verovio) participated and are interested in collaboration. There is appropriately-licensed software that will convert between most open-source formats, though some conversions are necessarily lossy.

If we could store scores and lyrics on Commons, we could transclude them into other wikis as we do images. I don't know if this would be easier, harder, or just the same, but I mention it as an option that would be better for editors.

• Aklapper changed the status of subtask Restricted Task from In Progress to Open.Mar 19 2025, 2:50 PM
sbassett closed subtask Restricted Task as Resolved.Jun 11 2026, 4:21 PM