Bug 1313202 - [QA](6.4.z) JBoss Web; rewrite flag NC does not work
Summary: [QA](6.4.z) JBoss Web; rewrite flag NC does not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web
Version: 6.4.7
Hardware: All
OS: Linux
unspecified
low
Target Milestone: CR1
: EAP 6.4.8
Assignee: Rémy Maucherat
QA Contact: Radim Hatlapatka
URL:
Whiteboard:
Depends On:
Blocks: eap648-payload 1313271
TreeView+ depends on / blocked
 
Reported: 2016-03-01 08:09 UTC by Jan Stourac
Modified: 2017-01-17 12:37 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 12:37:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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