ff4j
ff4j copied to clipboard
Escape new lines in JSON returned value (here creating features)
Create a Feature issue if the description has a new line in version 1.8.7
Response like below, if the description has a new line.
{"uid":"Test","enable":false,"description":"Test
Test","group":null,"permissions":[],"flippingStrategy":null,"customProperties":{}}
description example:
Test
Test
You are here using the REST API. I reproduce the error. Solution is to escape new lines in JSON strings.
Are you using the spring-boot-starter of the ff4j-webapi-jersey2x
api implementation ?
You are here using the REST API. I reproduce the error. Solution is to escape new lines in JSON strings.
Are you using the spring-boot-starter of the
ff4j-webapi-jersey2x
api implementation ?
I didn't use ff4j-webapi-jersey2x
.
Create Feature
Feature details gone
Hi :) I add +1 to @zengbo0710 I think this error was already raised and mentionned on this ticket https://github.com/ff4j/ff4j/issues/341 with fix suggestion. Hope you can fix it because it is very unconfortable at usage. Users are seeing a multiline field so they naturally think they can add new line. If they do, the feature is not editable anymore..
Best regards
Issue will be fixed with 1.9
(release 20/12/2022)


