Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1235627 - [GSS] (6.4.z) Annotation must be scanned regardless of the version of web.xml unless metadata-complete is explicitly set to true
[GSS] (6.4.z) Annotation must be scanned regardless of the version of web.xml...
Status: CLOSED CURRENTRELEASE
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web (Show other bugs)
6.4.1
Unspecified Unspecified
unspecified Severity unspecified
: CR1
: EAP 6.4.6
Assigned To: Tomas Hofman
Radim Hatlapatka
:
Depends On:
Blocks: 1235746
  Show dependency treegraph
 
Reported: 2015-06-25 07:11 EDT by Masafumi Miura
Modified: 2017-01-17 06:48 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker WFLY-4839 Major Closed annotation must be scanned regardless of the version of web.xml unless metadata-complete is explicitly set to true 2018-08-07 02:19 EDT
Red Hat Knowledge Base (Solution) 1499103 None None None 2016-01-21 18:59 EST

  None (edit)
Description Masafumi Miura 2015-06-25 07:11:12 EDT
### Description of problem:

Annotation must be scanned regardless of the version of web.xml unless metadata-complete is explicitly set to true.

Note that Servlet 3.0 specification clearly states the following:

~~~
1.6.2 Processing annotations
In Servlet 2.5, metadata-complete only affected the scanning of annotations at
deployment time. The notion of web-fragments did not exist in servlet 2.5. However
in servlet 3.0 metadata-complete affects scanning of all annotations and web-
fragments at deployment time. The version of the descriptor MUST not affect which
annotations you scan for in a web application. An implementation of a particular
version of the specification MUST scan for all annotations supported in that
configuration, unless metadata-complete is specified.
~~~


### How reproducible:

Anytime


### Steps to Reproduce:

1. Create a library jar which contains a servlet filter using @WebFilter 
2. Put the jar under WEB-INF/lib of the web application which web.xml version is 2.3 or 2.4
3. Start JBoss EAP 6
4. Access the web application and see if the servlet filter works


### Actual results:

The servlet filter is not invoked


### Expected results:

The servlet filter is invoked


### Additional info:

It works when the version of web.xml is 2.5 or 3.0
Comment 4 Tomas Hofman 2015-06-29 09:33:32 EDT
PR: https://github.com/jbossas/jboss-eap/pull/2468
Comment 8 Radim Hatlapatka 2016-01-21 05:47:15 EST
Verified with EAP 6.4.6.CP.CR2
Comment 9 Petr Penicka 2017-01-17 06:47:44 EST
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.
Comment 10 Petr Penicka 2017-01-17 06:48:17 EST
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.