Java.lang.StackOverflowError when updating API Portal CSS

Document ID : KB000008202
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

When updating the CSS in Portal from dashboard/site-settings/appearance, a large number of line-breaks (not necessarily total character count or file size) can cause the API Portal to break and error out.  You will be presented with the following error upon hitting the save button:

 

Capture.PNG

 

Resolution:

The line break limitation is looking to be addressed and fix in the upcoming CR of Portal. But for now, at the dashboard/site-settings/appearance you can import the css from a reference under resources folder. Example below:

 

@import "/resources/css/portal-styles-imported.css 

 

Importing and referencing it this way will not cause the Portal to error out, even with the same amount of line breaks.