-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating an out-of-band invitation does not include goal code in invitation_url encoding #2583
Comments
One issue I notice is that the OOB Manager is only setting the goal and goal code properties if BOTH are provided: https://github.com/hyperledger/aries-cloudagent-python/blob/37c4bc27d3c38b9843d696213d096b3fd4762dc2/aries_cloudagent/protocols/out_of_band/v1_0/manager.py#L366 |
Wondered if that might be it when I saw @wadeking98 ’s example. In that, he had provided a value for the code, but the goal was blank (“”). Interesting. However, the example above shows both fields populated, and both missing from the invitation_url value. |
One line before the line that I linked, it encodes the invitation as a URL, prior to assigning the goal and goal_code properties. :) |
@swcurran re: Andrew's comment here #2583 (comment) If intended I'll validate for that on the Tenant UI at least. My thought is it could 422 the request if you don't provide those together rather than return a success with the missing field not in the response. I can create another ticket if this is something to track |
maybe we should ask wade king and bc wallet team. we could 422 if only one of goal/goal_code provided, or we would just populate whatever fields are provided. the logic that both fields were required in order to add them must mean something... but it doesn't seem like anyone has a use case until now, so doubtful that only having a goal_code will break any existing processing. anyway, very easy to make any of those changes. |
i don't think you want to depend on the tenant-ui for protection, so whatever is deemed the appropriate behaviour, let's put it in ACA-Py |
Yeah just from a pure REST standpoint, regardless of business-needs, it maybe(?) smells to me that I can POST something and get a successful response that is meant to include the request fields in the resource, but is missing one of the fields. |
Added this for any future tracking if needed. #2594 |
We are using
out-of-band/create-invitation
to create an OOB invitation in Traction, and the invitation URL coming back appears to lack some info that is contained in the Invitation.POSTing the following body to
out-of-band/create-invitation
Returns a invitation
However that invitation URL block when decoded does not include the goal information:
The text was updated successfully, but these errors were encountered: