Shared - jolokiaService
should resolve or reject requests in case of ajax error
#635
Labels
jolokiaService
should resolve or reject requests in case of ajax error
#635
Currently the operations provided by
jolokiaService
such asreadAttribute
,writeAttribute
,execute
,search
, etc. rely on the defaultajaxError
callback in case of ajax error happening while performing Jolokia requests.hawtio-next/packages/hawtio/src/plugins/shared/jolokia-service.ts
Lines 293 to 332 in 50a83c4
Since this callback is not aware of
resolve
orreject
callback provided by eachPromise
that wraps a Jolokia operation, the processing of the request should hang in case of ajax error. This can happen when for some reason the remote Jolokia endpoint starts to stop serving requests, for instance due to authentication being expired or any other internal server error.This should be actually mostly fine, because then the user would need to refresh the page or authenticate again to restore the working status anyway. So, practically we've observed no issues with it yet. However, it should be still considered well-behaved to make sure the operation terminates in such an exceptional case. That's why it's marked as enhancement.
The text was updated successfully, but these errors were encountered: