Java.lang.StackOverflowError when updating API Portal CSS

book

Article ID: 8202

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

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:

 

<Please see attached file for image>

Capture.PNG

 

Environment

Release: L7APIP99000-3.1-API Developer Portal-Perpetual
Component:

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.

Attachments

1558714532390000008202_sktwi1f5rjvs16th7.png get_app