[jboss-jira] [JBoss JIRA] (WFCORE-865) Patching regression between WFCore 2.0.0.Alpha9 and Alpha11
Ladislav Thon (JIRA)
issues at jboss.org
Tue Aug 4 03:30:03 EDT 2015
Ladislav Thon created WFCORE-865:
------------------------------------
Summary: Patching regression between WFCore 2.0.0.Alpha9 and Alpha11
Key: WFCORE-865
URL: https://issues.jboss.org/browse/WFCORE-865
Project: WildFly Core
Issue Type: Bug
Components: Patching
Affects Versions: 2.0.0.Alpha11
Reporter: Ladislav Thon
Assignee: Alexey Loubyansky
With WildFly 10.0.0.Alpha5 (Core 2.0.0.Alpha9):
{code}
./wildfly-10.0.0.Alpha5/bin/jboss-cli.sh --command="patch apply test-patch-10.0.0.Alpha5.zip"
{
"outcome" : "success",
"result" : {}
}
./wildfly-10.0.0.Alpha5/bin/jboss-cli.sh --command="patch history"
{
"outcome" : "success",
"result" : [{
"patch-id" : "test-patch",
"type" : "cumulative",
"applied-at" : "8/4/15 9:07 AM"
}]
}
./wildfly-10.0.0.Alpha5/bin/jboss-cli.sh --command="patch info"
Version: undefined
Cumulative patch ID: test-patch
One-off patches: none
{code}
With WildFly 10.0.0.Alpha6 (Core 2.0.0.Alpha11):
{code}
./wildfly-10.0.0.Alpha6/bin/jboss-cli.sh --command="patch apply test-patch-10.0.0.Alpha6.zip"
{
"outcome" : "success",
"result" : {}
}
./wildfly-10.0.0.Alpha6/bin/jboss-cli.sh --command="patch history"
{
"outcome" : "success",
"result" : []
}
./wildfly-10.0.0.Alpha6/bin/jboss-cli.sh --command="patch info"
Version: undefined
Cumulative patch ID: base
One-off patches: none
{code}
With WildFly 10.0.0.Alpha6, based on {{patch history}} and {{patch info}}, it looks like the patch doesn't even apply, but that's not actually true, because trying to apply the patch once again results in
{code}
WFLYPAT0039: Requested WildFly version 10.0.0.Alpha6 did not match the installed version 10.0.0.Alpha6_PATCHED
{code}
So the patch in fact _is_ installed, it's just that neither {{patch history}} nor {{patch info}} doesn't show it like it used to.
The only reason I could come up with is that I use {{EAP}} as the {{<upgrade name="...">}}:
{code}
<upgrade name="EAP" version="10.0.0.Alpha6" to-version="10.0.0.Alpha6_PATCHED"/>
{code}
However:
1. This used to work just fine in WildFly 10.0.0.Alpha5 and before.
2. If this is now considered wrong, the patch shouldn't even apply in the first place.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list