question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trailing whitespace in the value of a property is hard to identify in failure analysis descriptions

See original GitHub issue

I 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
snicollcommented, Jun 21, 2022

It should be quoted in all cases.

0reactions
philwebbcommented, Jul 5, 2022

Closing in favor of PR #31571. Thanks @TheoCaldas!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found