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.

Caption with trailing whitespace leads to failed upload (titleblacklist-custom-space)

See original GitHub issue

Latest master.

Steps:

  1. Upload any picture.
  2. At the caption step, enter a name with a space at the end.
  3. The upload seems to be starting fine, but at the end it fails with the logcat error titleblacklist-custom-space.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Jiaweeeeeencommented, Oct 19, 2022

I think the solution could be to add a method in UploadMediaDetailInputFilter.java to check the trailing whitespace in the caption field. Then in the filter, if the input text has any trailing whitespace, simply remove it. I’m going to implement these methods and hope the solution works.

0reactions
Jiaweeeeeencommented, Oct 22, 2022

Unfortunately, this solution doesn’t work because any empty space the user types is recognized as trailing space. Instead, I have another solution to remove them after the user typed the caption. Any trailing whitespace will be removed when set to uploadMediaDetails.

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 until the newline. In your posted question, there...
Read more >
Remove leading and trailing white space from string - MATLAB
newStr = strtrim( str ) removes the leading and trailing whitespace characters from the string str . Use this operator in the Requirements...
Read more >
Why is trailing whitespace a big deal? [closed]
When I have string literals that span multiple lines, trailing whitespace can make the output string look incorrect when it's used. While not ......
Read more >
no-trailing-spaces - ESLint - Pluggable JavaScript Linter
This rule disallows trailing whitespace (spaces, tabs, and other Unicode whitespace characters) at the end of lines. Examples of incorrect code for this...
Read more >
Remove Spaces from a String In Python - DigitalOcean
The Python String strip() method removes leading and trailing characters from a string. The default character to remove is space.
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