Bug 1002720 - REST request without authentication throws NPE in business-central
Summary: REST request without authentication throws NPE in business-central
Keywords:
Status: CLOSED DUPLICATE of bug 986208
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Marco Rietveld
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-29 19:05 UTC by Jiri Svitak
Modified: 2016-09-20 05:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-30 12:41:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server.log (3.70 KB, text/plain)
2013-08-29 19:05 UTC, Jiri Svitak
no flags Details

Description Jiri Svitak 2013-08-29 19:05:14 UTC
Created attachment 791940 [details]
server.log

REST request without authentication throws NPE in business-central.
JBWEB000236: Servlet.service() for servlet javax.ws.rs.core.Application threw exception: java.lang.NullPointerException

I think it will be better if the application would react in a better way than NPE and server error 500. More meaningful exception could be thrown in server log and HTTP status 401 Unauthorized could be returned.

To reproduce:
1.) Download BPMS 6 ER2 and just run it with ./standalone.sh with default configuration. (Optionally you can add user guest, but the bug message remains the same.)
2.) Send a GET request to http://localhost:8080/business-central/rest/task/query?potentialOwner=guest&language=en-UK (for example using Firefox's RESTClient).

Comment 1 Ivo Bek 2013-08-30 12:36:06 UTC
This bug has been solving in BZ 986208.

Comment 2 Ivo Bek 2013-08-30 12:41:49 UTC

*** This bug has been marked as a duplicate of bug 986208 ***


Note You need to log in before you can comment on or make changes to this bug.