SAS® Web Report Studio displays "HTTP Status 500 - Internal Server Error" when saving a new report or opening a recent report


When you attempt to save a new report or open a recent report, SAS Web Report Studio might display the following error in a pop-up window:

HTTP Status 500 - Internal Server Error


You must click the X to close the window.

This error can occur if the name of the report includes one or more single straight apostrophes. For example, the following report name would cause this error:

Test ' Report

If you were attempting to save a report, the SAS Web Report Studio log contains a warning similar to this:

[WRS] WARN  [tomcat-http--21] 2018-05-09 11:43:51,461 [ST-2479-JUVRaO4HyHlaoi00XXj1-cas:sasdemo]
citation.view.beans.BeanValidator - Probable script attack
com.sas.apps.citation.view.beans.BeanValidator$BeanValidatorXSSException: Test ' Report


If you were attempting to open a report from the list of recently opened reports on the Welcome page, the log contains an error similar to this:

[WRS] ERROR [tomcat-http--18] 2018-06-27 11:51:41,225 [unknown:unknown] [Catalina].[localhost].
[/SASWebReportStudio].[action] - Servlet.service() for servlet [action] in context with path
[/SASWebReportStudio] threw exception [BeanUtils.populate] with root cause
com.sas.apps.citation.view.beans.BeanValidator$BeanValidatorXSSException:
SBIP://METASERVER/Shared Data/WRS Reports/Test ' Report.srx(Report)


Although SAS Web Report Studio does not prevent you from entering a straight apostrophe in the Name field, the straight apostrophe is not permitted in report names. The problem with the recent list can occur if you have reports that were created before SAS Web Report Studio changed the policy on single straight apostrophes in report names. You also cannot use any of the following characters in report names: \ / : * ? “ < > | @ # &