Creating dataspace using jwt token is failing for IBM
We are facing issue while trying to create dataspace using jwt token. We have ran the open-etp-server using the command "docker compose run -d -p 9002:9002 open_etp_server_runtime openETPServer server --start --authN none --authZ delegate=''" and then tried to create data space using the below command:
docker compose run open_etp_server_runtime openETPServer space -S ws://<container_name>:9002 --new -s demo/test --auth bearer --jwt-token <token>
But we are getting the below error after executing the above command.
terminate called after throwing an instance of 'avro::Exception' what(): EOF reached
After analyzing the open-etp-server code and verifying the entitlement service logs we could see that 400 bad request error is throwing by entitlement service while open-etp-server is trying to create the data group (data.demo/test.viewers) for the dataspace id demo/test. As the regular expression (pattern) of the data group name is not matching, entitlement service is throwing the bad request error.
Could you please help us to resolve this error. Not sure how the data group for dataspace id is getting created for other csp, it should fail for all if '/' is present in data group name. Even the encoded version of '/' which is '%2F' is getting blocked by regular expression check (^[A-Za-z0-9{}_.-]{3,128}$).
Below is the Java Class of Entitlement service where data group name is getting verified by regular expression: org.opengroup.osdu.entitlements.v2.model.creategroup.CreateGroupDto