KeePassJava2 icon indicating copy to clipboard operation
KeePassJava2 copied to clipboard

Detect existing Recycle Bin group if it wasn't specified in Meta

Open aivanovski opened this issue 3 years ago • 2 comments

Some KeePass clients may create "Recycle Bin" but don't specify it in database metadata. In order to not create an excessive "Recycle Bin" group, it can be detected by name. If a group with the name "Recycle Bin" wasn't found, then create a new one.

aivanovski avatar Apr 10 '22 11:04 aivanovski

@jorabin Hi, could you please have a look at this PR?

aivanovski avatar Apr 19 '22 12:04 aivanovski

hi @aivanovski many thanks for your PR - I'm afraid I have had zero time to attend to anything on this project, but hope to be able to do an update at some point in the not too distant future. Plan will first to merge the branch with v4 file format/encryption then we will see where we are.

jorabin-51d avatar Apr 19 '22 12:04 jorabin-51d

I thought I had left a comment on this some days ago, but don't see it. Apologies for any duplication.

I'm concerned that any such change might have a negative impact if implemented across the board. Wonder if it is better addressed in user code where it could be tailored to specific known problems, using a combination of

database.findEntries("Recycle Bin")

and

database.getRecycleBin()

or am I misunderstanding the problem? Are you saying that a

database.setRecycleBin(Group g)

method is needed?

jorabin avatar May 11 '23 11:05 jorabin

Hi, You understand it absolutely correctly and your solution database.setRecycleBin(Group g) will definitely work better than my hot-fix. I think it's better to cancel this PR then. @jorabin

aivanovski avatar May 11 '23 12:05 aivanovski

Hi, You understand it absolutely correctly and your solution database.setRecycleBin(Group g) will definitely work better than my hot-fix. I think it's better to cancel this PR then. @jorabin

OK, well then I raised #44 as a result. Keen to hear your views and I am closing this now, assuming we don't need to proceed with it.

jorabin avatar May 11 '23 12:05 jorabin