Should TAN's really allow SPACE characters?
See original GitHub issue- Source File: https://github.com/corona-warn-app/cwa-server/blob/82d2ff55d604f122c7b003adce358979bc7bc7a2/services/submission/src/main/java/app/coronawarn/server/services/submission/verification/tan/TanAuthorization.java#L36
- Line(s): 36
- Question: Should TAN’s really consist of SPACE characters?
The RegEx for reading TANs is done with
^(TAN|TELETAN) ([ a-zA-Z0-9]{6,30})$
This means e.g. this is a valid TAN:
TAN ABCDEF
There are two consecutive SPACES after “TAN”. The first SPACE separating “TAN” and the actual content. The second SPACE is part of the “TAN value” (followed by the “ABCDEF” characters), meaning the value of the TAN is ABCDEF (starting with SPACE).
This would also be a valid TAN (with TAN TAN ANOTHER TAN being the “value” of the TAN):
TAN TAN TAN ANOTHER TAN
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Should whitespace characters be allowed in a password?
Can even a single space character be easily and quickly identified? However, plenty of other types of systems do allow spaces in passwords....
Read more >white-space - CSS: Cascading Style Sheets - MDN Web Docs
The white-space CSS property sets how white space inside an element is handled.
Read more >4 Unexpected Neutrals to Give Your Space Some Spice
A space done in neutrals can be much more creative and exciting than just layers ... you need to give your home décor...
Read more >How to Make Spaces in HTML - ThoughtCo
The source of the problem is that HTML compresses all space characters—tabs, spaces, and carriage returns—to one character.
Read more >Using the \tab Command - TeX - LaTeX Stack Exchange
The command \tab exists, but it produces quite a large space. ... However, you can stack the commands in order to get the...
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

Hello together, thanks for the feedback! You are right, this should not be the regex for validating TANs. The reason for this code is that we are still waiting for final specifications. We will change this code to something more sensible once we have that information available.
See https://github.com/corona-warn-app/cwa-server/pull/295