Bug 1417653

Summary: [GSS](6.4.z) NullPointerException on missing user-agent in the request
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: tmiyargi
Component: Domain ManagementAssignee: Radovan Netuka <rnetuka>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.12CC: bmaxwell, brian.stansberry, dandread, hbraun, hpehl, jbilek, jkudrnac, mmiura, pjelinek, rhatlapa, rmaucher, rnetuka
Target Milestone: CR1   
Target Release: EAP 6.4.15   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-19 08:09:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1425872    
Bug Blocks: 1419353    

Description tmiyargi 2017-01-30 14:27:00 UTC
Description of problem:

NullPointerException when you send a request without user-agent,

Version-Release number of selected component (if applicable):
jboss-as-domain-http-interface-7.5.12.Final

How reproducible:

Use a ruby restclient to do a read-attribute request, not sending the user-agent

Expected results:
Other than NullPointerException

Additional info:

The HTTP specification states that the User-Agent header SHOULD be included.

As a server vendor we need to interpret that as 'might not' be included. There should be some fallback if this header is missing.

Comment 9 Jiří Bílek 2017-04-24 08:33:35 UTC
Thank you Masafumi for detailed steps to reproduce.

Verified with EAP 6.4.15.CP.CR2

Comment 10 Petr Penicka 2017-05-19 08:09:50 UTC
Released on May 18 as part of EAP 6.4.15.