1Password / connect-sdk-python

Python SDK for 1Password Connect
https://developer.1password.com/docs/connect
MIT License
200 stars 30 forks source link

get_item fails if pass item title of 26characters in length #80

Open volodymyrZotov opened 1 year ago

volodymyrZotov commented 1 year ago

What happened?

get_item fails if pass item title of 26 characters in length.

 if is_valid_uuid(item):
            return self.get_item_by_id(item, vault_id)
else:
            return self.get_item_by_title(item, vault_id)

What did you expect to happen?

It should search by item title if title is has a length of 26. We try to get it by ID, and if that fails, try by title instead.

Steps to reproduce

use get_item and pass item params as random 26 chars random string