[PSA] Xojo 2026r2.1 KeyChain.AddPassword Exception Bug

Just a public service announcement as I stumbled across this last night and it left me scratching my head and thinking my own code was borked.

Xojo 2026r2.1 has a bug, #81846 - KeyChain.AddPassword Exception, where if you use KeyChain.AddPassword, even if the keychain item doesn’t exist, an exception is thrown:

-25299: The specified item already exists in the keychain.

Fortuitously it does indeed create the keychain item. But one side effect is that the keychain item Label text is truncated.

Kudos to @Javier_Menendez for quickly reviewing and fixing.

Just mentioning so that the macOS devs amongst us don’t wander down any rabbit holes but also so that you can keep an eye out for a future version of Xojo that fixes this.

2 Likes