Skip to content

Comments

Fix parse exception when TimeField initial value is not set#55

Merged
tomohiro-okuyama merged 1 commit intokintone:masterfrom
trocco-io:fix-parse-exception-when-default-value-of-TimeField-is-empty
Jul 1, 2024
Merged

Fix parse exception when TimeField initial value is not set#55
tomohiro-okuyama merged 1 commit intokintone:masterfrom
trocco-io:fix-parse-exception-when-default-value-of-TimeField-is-empty

Conversation

@chikamura
Copy link
Contributor

@chikamura chikamura commented Jun 18, 2024

When the initial value of TimeField is not set, the get fields api returns the default value as an empty string.
This cause TimeField parse exception in getFormFields. This PR fixes that.

スクリーンショット 2024-06-18 18 31 18
Text '' could not be parsed at index 0 (through reference chain: com.kintone.client.api.app.GetFormFieldsResponseBody["properties"]->java.util.LinkedHashMap["TIME"]->com.kintone.client.model.app.field.TimeFieldProperty["defaultValue"])
	at 
...
> curl -s -XGET "https://${HOST}/k/v1/app/form/fields.json?app=${APP_ID}" -H "X-Cybozu-Authorization: ${KINTONE_CRED}" | jq .properties.TIME.defaultValue
""

@chikamura chikamura marked this pull request as ready for review June 18, 2024 09:39
@chikamura
Copy link
Contributor Author

@tomohiro-okuyama Could you please review it?

@tomohiro-okuyama
Copy link
Contributor

@chikamura
Thank you for your report!
I think the fix is sufficient, so we'd like to merge this PR soon.

@chikamura
Copy link
Contributor Author

Many thanks! 🙏

@tomohiro-okuyama tomohiro-okuyama merged commit 8ff56e7 into kintone:master Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants