The API provides a mechanism to get the status of actions. For example, when a template is imported it returns a response like this: <action href="/ovirt-engine/api/storagedomains/123/templates/456/import/789"> ... </action> The user can then use the provided 'href' to get the status of the action. Those links to action aren't currently working, they return 404 HTTP error messages. Apparently this is an issue in the application server, as this used to work with JBoss 7.1.1 but doesn't work with WildFly 10.1.0. The implementation of the action resource uses the following code: @Path("{action: (import|register)}/{oid}") ActionResource getActionResource(@PathParam("action") String action, @PathParam("oid") String oid) { ... } But apparently the application server isn't handling correctly the parenthesis within the path template. Note that this also affects version 3.6 of the engine, as it also uses WildFly (version 8).
If we want to fix this without waiting for a new release of Resteasy/WildFly, we need to apply the following patches: https://gerrit.ovirt.org/#/q/topic:RESTEASY-1569
In the linked Resteasy issue Bartosz Spyrko-Śmietanko is suggesting that using non-capturing groups works correctly. I verified that it does, and adapted the proposed patches. They are now much more simple: just one line.
Juan - is that "modified"? Anything missing and pending any review?
It is missing the backport to 4.0.7. I am working on that.
Moving to 4.1 and MODIFIED, as 4.0.7 won't be released.
Verified on 4.1.0-9