REST API Update Can Exceed Limit On String Attribute
search cancel

REST API Update Can Exceed Limit On String Attribute

book

Article ID: 263460

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Steps To Reproduce

1. Create an investment object attribute of data type=String

2. Set the size to an example max character size limit, e.g. 75 characters

3. Using REST API, update the attribute instance to more a size of more than the size set.

Method=PATCH

/ppm/rest/v1/projects/5xxxxxx


Expected Results: There should be an error showing that the size has been exceeded if more than 75 characters.

{
    "resourceId": "5105002",
    "httpStatus": "400",
    "errorMessage": "'tt_attribute_string' is too large. Maximum size is 75.",
    "errorCode": "validation.dataNotMaxSizeWithParam"

}

Actual Results: This is a valid operation and an error is not given.
In this example, the error is given if it exceeds 85 characters.

111111111122222222223333333333444444444455555555556666666666777777777788888

Environment

Release : 16.1.1

Resolution

This is reported as DE69343.

The issue is resolved in 16.1.1