Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Swords & Wizardry] Character sheet GIF image not loading from Roll20 image server

The Swords &amp; Wizardry character sheet has a broken logo on it. The URL on the Roll20 image server appears to be the following: <a href="https://imgsrv.roll20.net/?src=https%3A//raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%2526_Wizardry/SWSheet_logo.gif" rel="nofollow">https://imgsrv.roll20.net/?src=https%3A//raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%2526_Wizardry/SWSheet_logo.gif</a> URL decoding the "src" parameter value yields the following GitHub URL: <a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%26_Wizardry/SWSheet_logo.gif" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%26_Wizardry/SWSheet_logo.gif</a> The image server URL is broken, while the GitHub URL is working fine. This seems to indicate an issue with the Roll20 image server. Instead of serving the correct GIF file, it instead loads a PNG file with a "broken image" symbol ("PNG image data, 280 x 280, 8-bit/color RGBA, non-interlaced"). Looking through the GitHub repo at the issues, I'm not sure if this is related to another reported issue with the image server and GIF images? <a href="https://github.com/Roll20/roll20-character-sheets/issues/6166" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/issues/6166</a> Previously the Swords &amp; Wizardry character sheet did render correctly. The last known time they were rendering correctly for me was approximate two weeks ago, on April 5th. The image does appear to be in the git repo as expected, as described above, and the last changes to the Swords &amp; Wizardry character sheet files in the GitHub repo were 16 months ago, so long before the issue started appearing. <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%26_Wizardry" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%26_Wizardry</a> Digging in a bit deeper, the Roll20 image server does appear to be capable of loading a GIF image for the Exalted 2E character sheet. <a href="https://imgsrv.roll20.net/?src=https%3A//raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/solar.gif" rel="nofollow">https://imgsrv.roll20.net/?src=https%3A//raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/solar.gif</a> In that case, it may either be an issue with caching that specific file, or perhaps an issue with the ampersand in the URL. If the image server is not properly URL decoding the parameter, that could possibly introduce this type of issue.
1587438114
GiGs
Pro
Sheet Author
API Scripter
The problem is this: Swords_ %2526 _Wizardry/ It looks like they've used a html entity for the &amp; in the html code, and then that has been html-ised again by roll20, breaking the link. The sheet needs to have that changed. The best solution would be to change the folder to avoid using &amp;.
Thanks for the update. I would agree that avoiding the use of an ampersand would be safer in general (something like "swords-and-wizardry" would be cleaner). I'm a bit puzzled by why this issue only started to occur recently, though, as it has apparently been working for several years without that issue. This is definitely not a new character sheet. Can anyone verify that the Roll20 image server is no longer able to handle ampersands in image URL's, and whether that change was intentional?
1587440425

Edited 1587441274
GiGs
Pro
Sheet Author
API Scripter
It's most likely because they changed the URL on the sheet, thinking they were making it safe. The URL would have been this, for a long time <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_&amp;_Wizardry" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_&amp;_Wizardry</a> and that works fine.&nbsp; Then recently someone saw the &amp; in that link, and thinking that html doesnt like &amp; symbols (which by the way is a very reasonable conclusion to reach), changed the &amp; to its html-safe equivalent&nbsp; %26 , so the URL became <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%26_Wizardry" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%26_Wizardry</a> Which would be fine, except roll20 does some validation on links before it loads them. So when roll20 reads that link, it sees the %, and knows that is a html-unsafe character, so changes it into its html-safe equivalent&nbsp; %25 And that gives is the link that roll20 tries to load <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%2526_Wizardry" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Swords_%2526_Wizardry</a> which of course doesnt lead anywhere. The PNG image it is loading is its default "image not found, so load this instead" image.
In the character sheet itself, it's showing the following code: &lt;img style="width:300px;" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%26_Wizardry/SWSheet_logo.gif" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Swords_%26_Wizardry/SWSheet_logo.gif</a>" alt="Swords &amp; Wizardry"&gt; This is a valid URL to the file, and the last time the character sheet was changed was February 2017. <a href="https://github.com/Roll20/roll20-character-sheets/blame/master/Swords_%26_Wizardry/SWSheet.html#L413" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blame/master/Swords_%26_Wizardry/SWSheet.html#L413</a>
1587443319
vÍnce
Pro
Sheet Author
I recently had to change the name of the "AD&amp;D_1e" sheet's folder to "ADnD_1e" for the same reason.&nbsp; I moved the sheet's images to a subfolder on gihub and roll20 had issues with substituting for special characters.&nbsp; I had to change the folder name and updated the image URL's.
1587444847
GiGs
Pro
Sheet Author
API Scripter
This is the problem, as I described:&nbsp; Swords_%26_Wizardry Because you can see it has changed to %2526 in the imgserver link. If it's been like that for a long time, and only recently started breaking, then it'll be because of a change in roll20's behaviour. They've changed something with the way their server parses file names, and its causing this issue now.
1587459203
Andreas J.
Forum Champion
Sheet Author
Translator
It's likely linked, yes. Roll20 should start to enforcing to only use "safe" names on folder and files just in case. The Free Spacer sheet had even some trouble with having a space in the folder name.
1587483521
GiGs
Pro
Sheet Author
API Scripter
Andreas J. said: It's likely linked, yes. Roll20 should start to enforcing to only use "safe" names on folder and files just in case. The Free Spacer sheet had even some trouble with having a space in the folder name. I agree completely. I was surprised a while ago when a folder was created that broke github for winders users, because a folder was created using characters illegal on windows. That kind of thing should never get through.
1587812338
Andreas J.
Forum Champion
Sheet Author
Translator
This bug have now been addressed in a Bug Report-thread : Nicholas said: Hey folks -&nbsp; There seems to be an issue with how our image server caching system interacts with GitHub. We've got a ticket going with the dev team to fix it and we'll try to get it addressed as soon as we can. Thanks for pointing this out! I encourage future discussions to be continued there.