Closed gashcrumb closed 7 years ago
Yeah looks like configuredProperties is not optional. Will fix! @gashcrumb Should name and stepKind be optional too?
stepKind
definitly shouldn't be optional.
I'm not certain configuredProperties
should be optional or not, this issue is really more about the fact that the response is not JSON but a raw string instead, I can't do much with this response client-side.
Right - this issue is not about changing configuredProperties
to be optional, but to ensure that all error messages that come back to clients are JSON formatted. I thought that had been sorted previously...
The issue is that we need to use the spring way of handling rest errors, not the resteasy way; that no longer works when we switched to spring. But.. if the UI lets you save w/o properties then they should be optional?
Please don't conflate two different issues - open a new issue for the configuredProperties
if you want.
So in the case https://github.com/redhat-ipaas/ipaas-rest/issues/247#issuecomment-290330949 that's returning a JSON response properly. What am I missing?
Not sure! Was doing some quick testing this morning and came across this behavior. Again, whether or not configuredProperties
should be set, I don't get consistent responses back for HTTP calls, sometimes I get back json which is awesome, other times I get back whatevs which is less awesome :-)
@gashcrumb can this be closed now that Jimmi fixed the exception-mapper https://github.com/redhat-ipaas/ipaas-rest/issues/247? Or do you still want configuredProperties to be optional?
Oh, sure!
If I just zip through the integration editor and pick an HTTP start/finish connection and don't even bother to fill in a URI no
configuredProperties
field is set on those steps. When saving the integration, instead of getting back a JSON response I get back a java exception: