Application Config Integer field is being returned as float

Description

To reproduce:
Deploy an application, which has a custom Config. Make one of its fields of type Integer.
Then, make a request to get the app spec for an instance of this application.
In the response, the value of the Integer field has a decimal and a zero after the decimal, as if it were a float. Instead, the decimal point should not be there, since it is an Integer field.

Release Notes

None

Activity

Show:

Terence YimAugust 2, 2016 at 6:31 AM

Seems pretty stupid to serialize it. We should just read the `uploadedFile` again and pass it to `deployApp`.

Albert ShauAugust 1, 2016 at 8:09 PM

Looks like the cause is in AppLifecycleHttpHandler line 288 and 296, when the config is deserialized from a json object, then serialized into a string. At that point, the type information of the config object is not known, so numbers just get changed to doubles.

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Affects versions

Components

Fix versions

Priority

Created August 1, 2016 at 7:36 PM
Updated July 7, 2020 at 6:01 PM