Cannot reject API Plan request -- reject reason size limit
search cancel

Cannot reject API Plan request -- reject reason size limit

book

Article ID: 139922

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

Hi Team,

we are achieving problem while rejecting request for API Plan change on API Portal Classic 3.5. The requests are still in queue even they were rejected.

We found some hibernate errors in catalina.out in the time of rejecting the requests.

Could you be so kind and help us?

Thanks

Michal

 

The catalina.out shows error,

10/29 11:12:45.153 ERROR (http-nio-37080-exec-2:) - Data truncation: Data too long for column 'errorMsg' at row 1
10/29 11:12:45.154 ERROR (http-nio-37080-exec-2:) - [PlanRequestXS general] -- org.hibernate.exception.DataException: could not execute statement
        at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:71)
...
        at com.thelevel.lrs.bm.PlanRequestXS.rejectRequest(PlanRequestXS.java:211)
...
        at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'errorMsg' at row 1

Environment

Release : 3.5

Component : API PORTAL

Cause

When rejecting the request, input a message of reject reason, the message has 377 characters

But the column 'errorMsg' only allow 255 characters.



Resolution

The rejecting reason has 255 length limit