eclipse-arrowhead / core-java-spring

Eclipse Public License 2.0
26 stars 51 forks source link

Service registry unregister query parameters does not support system names with hyphens #347

Closed marhog closed 2 years ago

marhog commented 2 years ago

I registered services with the system name MY-SYSTEM and ran into problems with the unregister method:

DELETE https://127.0.0.1:8443/serviceregistry/unregister?service_definition=servicedefinition&system_name=MY-SYSTEM&address=192.168.0.1&port=8888 Returns status code 400 (Bad payload) The same thing happens with the hyphen encoded to read MY%2DSYSTEM

WIth the system name 'MY-SYSTEM' or "MY-SYSTEM" the payload is accepted but results in a 401 DELETE https://127.0.0.1:8443/serviceregistry/unregister?service_definition=servicedefinition&system_name=%27MY-SYSTEM%27&address=192.168.0.1&port=8888 { "errorMessage": "Application system name ('MY-SYSTEM') and certificate common name (MY-SYSTEM.testcloud2.aitia.arrowhead.eu) do not match!", "errorCode": 401, "exceptionType": "AUTH" }

marhog commented 2 years ago

Closing this issue since I get the same problem without hyphens....