Details
-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
4.4
-
4.04
-
Severity 2 - Major
-
-
Description
In JIRA 4.4 there is a new resource - http://docs.atlassian.com/jira/REST/4.4/#id2476538 - customFieldOption (linked from custom fields). The problem is that:
1. it's documentation looks bad (i.e. in the code I see that both id and the value are supposed to be returned, but the generated doco says only about id)
2 (the core of this report). it always throws for me NPE:
SEVERE: Internal server error java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.scope.RequestScope.get(RequestScope.java:33) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:33) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:184) at $Proxy690.getBaseUriBuilder(Unknown Source) at com.atlassian.jira.rest.v2.issue.ResourceUriBuilder.build(ResourceUriBuilder.java:28) at com.atlassian.jira.rest.v2.issue.customfield.CustomFieldOptionBeanBuilder.build(CustomFieldOptionBeanBuilder.java:78) at com.atlassian.jira.rest.v2.issue.customfield.CustomFieldOptionResource.getCustomFieldOption(CustomFieldOptionResource.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:206) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:90) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:98) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.access$100(DispatchProviderHelper.java:28) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:202) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
Also, this resource looks completely useless for consumers as I cannot see any way to get all options (at least their ids) for given custom field. Am I missing something?