Trailing whitespace in the value of a property is hard to identify in failure analysis descriptions
See original GitHub issueI think we should quote or somehow delimit the value that’s output in the failure analysis. It looks like this at the moment:
Property: spring.servlet.multipart.file-size-threshold
Value: 2KB
Origin: class path resource [application.properties]:24:46
Reason: failed to convert java.lang.String to org.springframework.util.unit.DataSize
I think something like this would be better:
Property: spring.servlet.multipart.file-size-threshold
Value: "2KB "
Origin: class path resource [application.properties]:24:46
Reason: failed to convert java.lang.String to org.springframework.util.unit.DataSize
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
what is trailing whitespace and how can I handle this?
Trailing whitespace is any spaces or tabs after the last non-whitespace character on the line ... Use your editor to find the end...
Read more >The property value is invalid. The value can't contain leading ...
The property value is invalid. The value can't contain leading or trailing white space.
Read more >RFC 3676: The Text/Plain Format and DelSp Parameters
In the presence of these parameters, trailing whitespace is used to indicate flowed lines and a canonical quote indicator is used to indicate...
Read more >RFC 3676 Text/Plain Format - IETF
In the presence of these parameters, trailing whitespace is used to indicate flowed lines and a canonical quote indicator is used to indicate...
Read more >Data Format Description Language (DFDL) v1.0 Specification
Note that leading and trailing whitespace is not trimmed and is part of the regular expression value. Example: the dfdl:lengthPattern property takes a ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It should be quoted in all cases.
Closing in favor of PR #31571. Thanks @TheoCaldas!