Bug 1026516 - Tomcat 7 - Invalid credentials - throws a NullPointer exception
Tomcat 7 - Invalid credentials - throws a NullPointer exception
Status: NEW
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: BAM (Show other bugs)
All All
low Severity low
: ---
: ---
Assigned To: David Gutierrez
Jan Hrcek
Depends On:
  Show dependency treegraph
Reported: 2013-11-04 16:06 EST by Roger Martínez
Modified: 2016-09-20 01:08 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Known Issue Summary: When using the Tomcat 7 Dashbuilder Distribution, users logging in with invalid credentials receive an error page with a nullpointer exception. The expected result should be an "Invalid Credentials" error message. A possible workaround from encountering the error page with a nullpointer exception is to use basic authentication instead of form based authentication when logging in. Cause: Consequence: Fix: Result:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
dashbuilder - tomcat7 - invalid credentials error (73.85 KB, image/png)
2013-11-04 16:06 EST, Roger Martínez
no flags Details

  None (edit)
Description Roger Martínez 2013-11-04 16:06:09 EST
Created attachment 819350 [details]
dashbuilder - tomcat7 - invalid credentials error

Description of problem: When doing a login with invalid credentials using the tomcat-7 dashbulder distribution, an error page is diplayed with a nullpointer exception.

Version-Release number of selected component (if applicable): 6.1.0-SNAPSHOT (builded on 4 nov 2013)

How reproducible:

Steps to Reproduce:
1. Install tomcat 7
2. Add users specified in https://github.com/droolsjbpm/dashboard-builder/blob/master/builder/src/main/tomcat7/README.md into tomcat-users.xml (tomcat realm)
3. Copy dashbuilder-tomcat-7.war into webapps directory
4. Navigate to http://localhost:8080/dashbuilder-tomcat-7/
5. Try to login with invalid credentials
6. An error page with a nullpointer exception is displayed.

Actual results:

Expected results: Invalid credentials error message.

Additional info:

The exception is:


NOTE: Probably I'm missing some tomcat configuration??
Comment 1 Roger Martínez 2013-11-04 16:07:54 EST
See screenshot attached
Comment 3 Pedro Zapata 2013-11-05 04:12:21 EST
Thats a known issue (https://issues.jboss.org/browse/JBPM-4034).

The problems it seems to be caused by the following Weld issue https://issues.jboss.org/browse/WELD-1020.
It seems to be fixed in Weld 2.0. But unfortunately, Dashbuilder is based on Weld 1.1 as it's the version used by EAP

The issue will be fixed when adapting Dashbuilder to forthcoming versions of the AS. WildFly 8 may be.
Comment 4 Pedro Zapata 2013-11-05 04:12:58 EST
One possible workaround is using basic authentication instead of form based authentication.
Comment 5 Roger Martínez 2013-11-05 14:38:11 EST

so... this issue can be marked as duplicate and closed?
Comment 7 Pedro Zapata 2013-11-08 04:02:47 EST
It's not duplicated, as it's reported in a JIRA. We'll leave it open by the moment to keep track with low priority.

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