Bug 1313202

Summary: [QA](6.4.z) JBoss Web; rewrite flag NC does not work
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jan Stourac <jstourac>
Component: WebAssignee: Rémy Maucherat <rmaucher>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hatlapatka <rhatlapa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.7CC: bbaranow, bmaxwell, chaowan, egonzale, jtruhlar, mcada, rmaucher
Target Milestone: CR1   
Target Release: EAP 6.4.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 12:37:35 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:    
Bug Blocks: 1279553, 1313271    

Description Jan Stourac 2016-03-01 08:09:58 UTC
Description of problem:
According to this [1], there exists 'NC' flag for rewrite rule in the Web subsystem for virtual host. However this does not work unless I use 'nocase' instead of 'NC' as a flag.

Version-Release number of selected component (if applicable):
EAP 6.4.7
JBoss Web Services - Stack CXF Server 4.3.6.Final-redhat-1

How reproducible:
Always

Steps to Reproduce:
1. start server and connect to cli
2. set-up rewrite rule: /subsystem=web/virtual-server=default-host/rewrite=myrewrite:add(pattern="/hello",substitution="/",flags="NC")
3. perform reload: reload
4. try to access 'http://localhost:8080/HELLO' in your web browser

Actual results:
Access to 'http://localhost:8080/HELLO' fails with 404 status.

Expected results:
Access to 'http://localhost:8080/HELLO' should be successful with default EAP welcome page.

Additional info:
When I use 'nocase' instead of 'NC' this feature works as expected.

[1] http://jbossweb.jboss.org/modules/rewrite.html

Comment 2 Enrique Gonzalez Martinez 2016-03-01 09:49:12 UTC
Patch in: https://source.jboss.org/changelog/JBossWeb?cs=2647

Comment 5 Michael Cada 2016-05-10 08:08:42 UTC
Verified with EAP 6.4.8.CP.CR2

Comment 6 Petr Penicka 2017-01-17 12:37:35 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.