You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A user added to the sample JS app cannot connect to the application endpoint if the user was added with any user data.
{
"error": {
"code": "InternalError",
"message": "Failed to get data for caller cc709cb5bcd8f456a0ab1bf64ccb54ab0032448473ab6a97157d338365a65a21"
}
}
To Reproduce
Start a CCF app with sandbox.sh using the sample JS app.
In the created workspace/sandbox_common directory, create the set_user proposal using the generated user0 (note this has already been added to the network by sandbox.sh, and the user initially works).
Try to use the app: curl https://127.0.0.1:8000/app/compute2/add/3/5 -k --silent --cert user0_cert.pem --key user0_privk.pem | jq. The error above is returned.
Expected behavior
The added user should be able to successfully connect as before.
Environment information
CCF 2.0.4 (I didn't notice I was on an earlier version until too late, but this isn't mentioned in release notes so I would guess it's not been addressed yet)
Additional context
I printed the proposal submitted by sandbox.sh to add the user (the cert doesn't match exactly because it is a different run) and the only difference is that there is no user data provided.
@lynshi Thanks for raising, and the precise repro steps. I have a fix pending in #4231.
As a workaround until that is released, you can make the same small change to the set_user action in your constitution, or use set_user_data directly (though that results in 2 proposals to add a user with user_data). Note that to fix this in existing services, you'll need to update their constitutions to correct the implementation of set_user.
Describe the bug
A user added to the sample JS app cannot connect to the application endpoint if the user was added with any user data.
To Reproduce
sandbox.sh
using the sample JS app.workspace/sandbox_common
directory, create theset_user
proposal using the generateduser0
(note this has already been added to the network bysandbox.sh
, and the user initially works)./opt/ccf/bin/scurl.sh https://127.0.0.1:8000/gov/proposals --cacert service_cert.pem --signing-key member0_privk.pem --signing-cert member0_cert.pem --data-binary @set_user.json -H "content-type: application/json"
curl https://127.0.0.1:8000/app/compute2/add/3/5 -k --silent --cert user0_cert.pem --key user0_privk.pem | jq
. The error above is returned.Expected behavior
The added user should be able to successfully connect as before.
Environment information
CCF 2.0.4 (I didn't notice I was on an earlier version until too late, but this isn't mentioned in release notes so I would guess it's not been addressed yet)
Additional context
I printed the proposal submitted by
sandbox.sh
to add the user (the cert doesn't match exactly because it is a different run) and the only difference is that there is no user data provided.The text was updated successfully, but these errors were encountered: