Fossil Forum

Using line breaks in default-csp gives Internal Server Error
Login

Using line breaks in default-csp gives Internal Server Error

(1) By Remco Schoen (duvel) on 2020-09-03 18:07:20 [source]

Hi,

As my hosted html and javascript in fossil no longer worked with 2.12, I found that there is a new setting default-csp. I copied the default from docs in the setting and from that moment fossil stopped serving pages and gave an Internal Server Error.

I was able to unset the setting, but I wouldn't expect fossil to breakdown this hard. I was luckily able to have direct access to the repository file itself, but when you don't, you could be in big trouble.

Kind regards,

Remco Schoen

(2) By Richard Hipp (drh) on 2020-09-03 19:06:43 in reply to 1 [link] [source]

Can you please try again with the fix at check-in e0f2283c154a019a. Please reply to this message telling us whether or not the fix cures your problem. Thanks.

(3) By Remco Schoen (duvel) on 2020-09-05 07:51:19 in reply to 2 [link] [source]

I just did a build on my Raspberry Pi and can confirm this fix cures the problem.

I changed to the wrong setting to test in the 2.12.1 docker image, so it broke and then changed to the newly build docker image and the web server was available again.

Thanks!