Menu

#4067 Erroneous Dialog - Opening Backup File

normal bug
closed-fixed
nobody
None
1
2018-08-05
2018-04-18
No

jEdit 5.5.0 under JAVA SE 1.8.0_171 under Windows 10 Pro
Every file I open now pops up the "Opening Backup File" dialog saying "the file ... is likely a jEdit backup file". This never happened before v5.5.0. What is the criteria for determining when this dialog should appear?

1 Attachments

Discussion

  • g

    g - 2018-04-24

    This is a bug in MiscUtilities:isBackup

    If properties:backup.suffix is a null string ("") then it will always return true.

     
  • John Potelle

    John Potelle - 2018-04-24

    If the backup prefix and suffix are both null and a backup path is not null, perhaps isBackup should check only the path of the file being opened...

     
  • Dale Anson

    Dale Anson - 2018-08-05
    • status: open --> closed-fixed
     
  • Dale Anson

    Dale Anson - 2018-08-05

    This is fixed, see also bug # 4069.

    A side note -- the "isBackup" method can not check if the file is in the backup directory (if any) since it is only given the bare filename as a string to work with, not the path for the file.

     

Log in to post a comment.

Monday.com Logo