Bug 903219
Summary: | [REST-API] NPE in api?rsdl | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Jakub Libosvar <jlibosva> | ||||
Component: | ovirt-engine-restapi | Assignee: | Ravi Nori <rnori> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jakub Libosvar <jlibosva> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.2.0 | CC: | acathrow, dyasny, iheim, mpastern, oramraz, pprakash, Rhev-m-bugs, sgrinber, ykaul | ||||
Target Milestone: | --- | Keywords: | Regression | ||||
Target Release: | 3.2.0 | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | sf4 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 872819 | ||||||
Attachments: |
|
Oops, missed version. It's rhevm-3.2.0-4.el6ev.noarch i cannot reproduce this on my environment, sounds like deployment issue, can you see the backend version at /api <product_info>? <product_info> <name>oVirt Engine</name> <vendor>ovirt.org</vendor> <version major="3" minor="2" build="0" revision="0"/> </product_info> ravi, please see if you can reproduce this BZ on mentioned build Yes rhevm-3.2.0-4.el6ev.noarch throws an exception on /api?rsdl The rsdl bug was fixed in rhevm-3.2.0-5.el6ev.noarch, I have verified that /api?rsdl work in rhevm-3.2.0-5.el6ev.noarch (sf4) (In reply to comment #7) > The rsdl bug was fixed in rhevm-3.2.0-5.el6ev.noarch, I have verified that > /api?rsdl work in rhevm-3.2.0-5.el6ev.noarch (sf4) thanks Ravi, Jakub, please verify this bug against sf4. Verified rhevm-restapi-3.2.0-5.el6ev.noarch 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released |
Created attachment 685931 [details] server.log Description of problem: When accessing https://<rhevm-hostname>/api?rsdl NPE occurs: HTTP Status 500 - exception org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:351) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:220) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:196) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:551) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:513) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) root cause java.lang.NullPointerException org.ovirt.engine.api.restapi.resource.BackendApiResource.addSystemVersion(BackendApiResource.java:347) org.ovirt.engine.api.restapi.resource.BackendApiResource.get(BackendApiResource.java:305) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:536) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:513) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Go to https://<rhevm-hostname>/api?rsdl 2. 3. Actual results: NPE Expected results: rsdl Additional info: Full trace attached Regression against 3.1