New Draw.io diagrams can't load images if username contains emoji character #1619

Closed
opened 2026-02-05 01:26:40 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @dopyrory3 on GitHub (Apr 2, 2020).

Describe the bug
I don't even know if this is necessarily worth the time in fixing, but if a user has an emoji in their username and creates a draw.io diagram - the image is generated on the filesystem but BookStack gets HTTP 500 error trying to load it

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create a new user with an emoji character in their name
  2. Create a draw.io diagram within a page
  3. Save the diagram
  4. See error in that image does not display & web console error 500

Expected behavior
I expect that upon saving the png generated of the diagram is displayed on my finished page

Screenshots
image

Your Configuration (please complete the following information):

  • Tested on demo site in screenshot above

Additional context
I haven't tested with many emojis, it's possible some of them work.

Originally created by @dopyrory3 on GitHub (Apr 2, 2020). **Describe the bug** I don't even know if this is necessarily worth the time in fixing, but if a user has an emoji in their username and creates a draw.io diagram - the image is generated on the filesystem but BookStack gets HTTP 500 error trying to load it **Steps To Reproduce** Steps to reproduce the behavior: 1. Create a new user with an emoji character in their name 2. Create a draw.io diagram within a page 3. Save the diagram 4. See error in that image does not display & web console error 500 **Expected behavior** I expect that upon saving the png generated of the diagram is displayed on my finished page **Screenshots** ![image](https://user-images.githubusercontent.com/12117229/78241908-0f33ce00-74d9-11ea-85ce-52e95c2d24bd.png) **Your Configuration (please complete the following information):** - Tested on demo site in screenshot above **Additional context** I haven't tested with many emojis, it's possible some of them work.
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 01:26:40 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Apr 4, 2020):

Thanks for reporting @dopyrory3. What a fun & strange issue.

After some testing, I think this only really occurs with Emoji ZWJ Sequences. Initially tried with a 🐫 and that worked fine. Could even have 🐫🐫🐫 in my name and it still work, Seems like the zero-width joiners triggers this.

Have assigned to be addressed in the next feature release.

@ssddanbrown commented on GitHub (Apr 4, 2020): Thanks for reporting @dopyrory3. What a fun & strange issue. After some testing, I think this only really occurs with Emoji ZWJ Sequences. Initially tried with a 🐫 and that worked fine. Could even have 🐫🐫🐫 in my name and it still work, Seems like the zero-width joiners triggers this. Have assigned to be addressed in the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1619