]
Chao Wang updated WFCORE-4656:
------------------------------
Summary: Write Empty ALLOWED_ORIGINS list cause ConfigurationPersistenceException on
reload (was: Write Empty ALLOWED_ORIGINS list could cause IllegalArgumentException on
reload)
Write Empty ALLOWED_ORIGINS list cause
ConfigurationPersistenceException on reload
----------------------------------------------------------------------------------
Key: WFCORE-4656
URL:
https://issues.jboss.org/browse/WFCORE-4656
Project: WildFly Core
Issue Type: Bug
Components: Management
Affects Versions: 10.0.0.Beta6
Reporter: Chao Wang
Assignee: Chao Wang
Priority: Major
First add then clear ALLOWED_ORIGINS list cause ConfigurationPersistenceException at next
server reload
{noformat}
19:25:17,033 ERROR [org.jboss.as.controller] (Controller Boot Thread)
OPVDX001: Validation error in standalone.xml -----------------------------------
|
| 79: </audit-log>
| 80: <management-interfaces>
| 81: <http-interface security-realm="ManagementRealm"
allowed-origins="">
| ^^^^ '' is an invalid value for parameter allowed-origins. Values must
have
| a minimum length of 1 characters
|
| 82: <http-upgrade enabled="true"/>
| 83: <socket-binding http="management-http"/>
| 84: </http-interface>
|
| The primary underlying error message was:
| > ParseError at [row,col]:[81,13]
| > Message: "WFLYCTL0113: '' is an invalid value for parameter
| > allowed-origins. Values must have a minimum length of 1 characters"
|
|-------------------------------------------------------------------------------
19:25:17,034 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught
exception during boot:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed
to parse configuration
at
org.jboss.as.controller@10.0.0.Beta6//org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)
at
org.jboss.as.server@10.0.0.Beta6//org.jboss.as.server.ServerService.boot(ServerService.java:385)
at
org.jboss.as.controller@10.0.0.Beta6//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:374)
at java.base/java.lang.Thread.run(Thread.java:834)
19:25:17,035 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server
boot has failed in an unrecoverable manner; exiting. See previous messages for details.
{noformat}
Because parser doesn't properly parse empty list for configuration like:
{noformat}
<management-interfaces>
<http-interface security-realm="ManagementRealm"
allowed-origins="">
{noformat}