Skip to content

Conversation

@alkalescent
Copy link
Contributor

No description provided.

Copy link
Contributor

@jakedoublev jakedoublev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice cleanup, but it looks like the same error is returned from this wrapper function, db.ErrUUIDInvalid, which reads value not a valid UUID? In that case, it seems like it will still not be clear to the requester that the member id was invalid and not the value id as the original opener of the issue found.

@alkalescent
Copy link
Contributor Author

alkalescent commented Apr 22, 2024

Server responses are wrapped again with the StatusifyError fx which replaces ErrUUIDInvalid with ErrTextUUIDInvalid. I believe external users and @sievdokymov-virtru use the server / AttributeService to place the request in #505. If we believe internal developers will be confused by ErrUUIDInvalid, I can replace the text for that as well.

@alkalescent alkalescent enabled auto-merge April 22, 2024 18:49
@alkalescent alkalescent added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit c8f61aa Apr 23, 2024
@alkalescent alkalescent deleted the fix/ambiguous-db-error branch April 23, 2024 12:28
github-merge-queue bot pushed a commit that referenced this pull request Apr 26, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](service/v0.1.0...service/v0.2.0)
(2024-04-26)


### Features

* **policy:** move key access server registry under policy
([#655](#655))
([7b63394](7b63394))
* **provisioning:** Keycloak provisioning from custom config
([#573](#573))
([f9e9d72](f9e9d72))
* **sdk:** make enforcement of DPoP optional
([#617](#617))
([028064c](028064c))


### Bug Fixes

* **core:** remove unused db argument
([#653](#653))
([cfbd168](cfbd168))
* **db:** invalid uuid error message
([#633](#633))
([c8f61aa](c8f61aa))
* **sdk:** this (`enforceDPoP`) flag needs to be flipped
([#649](#649))
([dd65db1](dd65db1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
Co-authored-by: jakedoublev <[email protected]>
tech-guru42 added a commit to tech-guru42/TDF that referenced this pull request Jun 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](opentdf/platform@service/v0.1.0...service/v0.2.0)
(2024-04-26)


### Features

* **policy:** move key access server registry under policy
([#655](opentdf/platform#655))
([7b63394](opentdf/platform@7b63394))
* **provisioning:** Keycloak provisioning from custom config
([#573](opentdf/platform#573))
([f9e9d72](opentdf/platform@f9e9d72))
* **sdk:** make enforcement of DPoP optional
([#617](opentdf/platform#617))
([028064c](opentdf/platform@028064c))


### Bug Fixes

* **core:** remove unused db argument
([#653](opentdf/platform#653))
([cfbd168](opentdf/platform@cfbd168))
* **db:** invalid uuid error message
([#633](opentdf/platform#633))
([c8f61aa](opentdf/platform@c8f61aa))
* **sdk:** this (`enforceDPoP`) flag needs to be flipped
([#649](opentdf/platform#649))
([dd65db1](opentdf/platform@dd65db1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
Co-authored-by: jakedoublev <[email protected]>
passion-127 added a commit to passion-127/TDF that referenced this pull request Jun 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](opentdf/platform@service/v0.1.0...service/v0.2.0)
(2024-04-26)


### Features

* **policy:** move key access server registry under policy
([#655](opentdf/platform#655))
([7b63394](opentdf/platform@7b63394))
* **provisioning:** Keycloak provisioning from custom config
([#573](opentdf/platform#573))
([f9e9d72](opentdf/platform@f9e9d72))
* **sdk:** make enforcement of DPoP optional
([#617](opentdf/platform#617))
([028064c](opentdf/platform@028064c))


### Bug Fixes

* **core:** remove unused db argument
([#653](opentdf/platform#653))
([cfbd168](opentdf/platform@cfbd168))
* **db:** invalid uuid error message
([#633](opentdf/platform#633))
([c8f61aa](opentdf/platform@c8f61aa))
* **sdk:** this (`enforceDPoP`) flag needs to be flipped
([#649](opentdf/platform#649))
([dd65db1](opentdf/platform@dd65db1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: opentdf-automation[bot] <149537512+opentdf-automation[bot]@users.noreply.github.com>
Co-authored-by: jakedoublev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Policy API: Extend error messaging with wrong parameter info to improve clarity and not mislead user.

4 participants