[PSWDMNGR-8] PasswordRegistry#getPassword should fail gracefully Created: 02/Sep/17  Updated: 30/Jan/23  Resolved: 30/Jan/23

Status: Closed
Project: Password Manager
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Team: AdminX

 Description   

When calling

PasswordRegistry#getPassword(id)

and if there is no password by the given id,
the method throws Registry.NoSuchDefinitionException,
which seems a bit harsh.

I propose to add this to the method signature.
Or catching the error and returning null.



 Comments   
Comment by Matt Rajkovic [ 30/Jan/23 ]

Very old issue. Closing.

Generated at Mon Feb 12 10:25:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.