Menu

#1901 generator fails, if pattern contains a dot

KeePass_2.x
closed
pat.dot (1)
5
2021-07-28
2019-11-18
source4fun
No

hello,

keepass version 2.43 windows (bug is not in previous version)

steps:

  1. open password generator
  2. select generate using pattern
  3. set pattern field to: ".d"
  4. select tab "preview"
  5. result area displays error message "failed to generate a password. the pattern is invalid."

if an unmasked dot ('.' not '.'), or other umasked punctuation characters are invalid patterns, then this should be stated in the pattern documentation.

best regards
frank

Discussion

  • Paul

    Paul - 2019-11-18

    It is stated in the documentation.
    Literal characters must be escaped with a backslash, in this case \.d

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2019-11-18
    • status: open --> closed
     
  • source4fun

    source4fun - 2019-11-20

    for the sake of clarity i suggest to add to the documentation something like:

    Literal characters, i.e. charcters, that are not placeholders, must be escaped with a backslash (e.g. "\."), otherwise the pattern is invalid.<

    cheers, frank

     

    Last edit: source4fun 2019-11-20
  • Ulrich Windl

    Ulrich Windl - 2021-07-28

    To make matters worse, it seems an unescaped dot had worked in the past, but currently it does not. Despite of that what sense does [,.] make when a dot is any character?
    In addition . is not listed as a special character in Help (KeePass 2.47), so I think it is a bug.
    Next thing is that I can enter the pattern without a problem (no error being indicated), but then preview tells me "The pattern is invalid" (KeePass 2.47).
    This is absolutely bad UI design and a very poor error message, also.

     

    Last edit: Ulrich Windl 2021-07-28
    • source4fun

      source4fun - 2021-07-28

      Despite of that what sense does [,.] make when a dot is any character?

      if a dot is surrounded by square brackets, then the meaning of a dot changes from any character to a literal dot.

      well, i can not confirm pauls claim It is stated in the documentation. i aggree to you (u. windl), that we have still an unsolved problem.

       
      • Dominik Reichl

        Dominik Reichl - 2021-07-28

        if a dot is surrounded by square brackets, then the meaning of a dot changes from any character to a literal dot.

        This is incorrect. A dot does not mean 'any character', and its meaning also doesn't change.

        Best regards,
        Dominik

         
  • Dominik Reichl

    Dominik Reichl - 2021-07-28

    Any character (including the dot) may become a special character in a future version.

    If you want to output/use a character literally, you must escape it with a backslash (as documented).

    Best regards,
    Dominik

     
    • source4fun

      source4fun - 2021-07-28

      i apologize, but the dot is not listed in the documentation in the table of placeholders. also, the word dot does not appear anywhere. or did i overread something?

       

      Last edit: source4fun 2021-07-28
  • Paul

    Paul - 2021-07-28

    You are correct, dot is not listed as a placeholder, therefore it must be escaped.

    cheers, Paul

     

Log in to post a comment.

MongoDB Logo MongoDB