Bug 1181854

Summary: Deployment fails if a web-fragment.xml references fragment name that's not present
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: James Livingston <jlivings>
Component: WebAssignee: Rémy Maucherat <rmaucher>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Cada <mcada>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.2CC: hpeng, joallen
Target Milestone: ER2   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:38:54 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:

Description James Livingston 2015-01-13 22:58:10 UTC
If you deploy a web application which has a web fragment with a relative ordering referring to a non-existent fragment, it will fail. This was reported  as JBAS-8767, Remy said the spec was not clear so he would ask, and them it was fixed for AS 6.0.

The fix does not appear to have been incorporated into AS7. I am unsure as to the result of the spec clarification on whether it should work, but since it was fixed in AS6 it probably should for EAP as well.

Comment 1 James Livingston 2015-01-13 23:01:43 UTC
Upstream AS 6 changeset was https://source.jboss.org/changelog/JBossAS6/?cs=110198

Comment 3 Jason Peng 2015-01-15 07:32:22 UTC
The same validation code seems written in class "WarMetaDataProcessor.java":

https://github.com/undertow-io/undertow-subsystem/blob/master/extension/src/main/java/org/jboss/as/undertow/deployment/WarMetaDataProcessor.java

"throw new IllegalStateException(MESSAGES.invalidRelativeOrderingUnknownName(webOrdering.getJar()))"

Comment 4 Jason Peng 2015-01-15 07:45:36 UTC
(In reply to Jason Peng from comment #3)
> The same validation code seems written in class "WarMetaDataProcessor.java":
> 
> https://github.com/undertow-io/undertow-subsystem/blob/master/extension/src/
> main/java/org/jboss/as/undertow/deployment/WarMetaDataProcessor.java
> 
> "throw new
> IllegalStateException(MESSAGES.
> invalidRelativeOrderingUnknownName(webOrdering.getJar()))"

Also in EAP 6.3, the validation is written in this file:
org.jboss.as.web.deployment.WarMetaDataProcessor.java

"throw new IllegalStateException(MESSAGES.invalidRelativeOrderingUnknownName(webOrdering.getJar()));"

Comment 5 Radim Hatlapatka 2015-02-10 16:42:13 UTC
Verified with EAP 6.4.0.ER2