Skip to content

Server.xml configuration error not detected. #33453

@jimblye

Description

@jimblye

Describe the bug
If random texts appears between elements, it is not detected. This could also be a missing opening or closing angle bracket "<" or ">".

For example,

<server >                                                                                      
    xwebApplication id="CicsSnoopApi" location="${server.config.dir}/apps/BadCicsSnoopApi.war" 
        name="CicsSnoopApi" contextRoot="/CicsSnoopApi"/>                                      
</server> 
<server >    
   xxxx                                                                                  
    <webApplication id="CicsSnoopApi" location="${server.config.dir}/apps/BadCicsSnoopApi.war" 
        name="CicsSnoopApi" contextRoot="/CicsSnoopApi"/>                                      
</server> 

The problem is, it becomes difficult to debug the problem since it goes undetected. An error message should be displayed in server.xml.

Also, if onError=FAIL is configured, the server startup should fail.

Steps to Reproduce
Use the above config.
start the server.

Expected behavior
An error message should be displayed.

Diagnostic information:

  • OpenLiberty Version: [e.g. 0 - 25.0.0.11]
  • Affected feature(s) N/A
  • Java Version: N/A

Metadata

Metadata

Assignees

Labels

release bugThis bug is present in a released version of Open Liberty

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions