Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1099834

Summary: (doc and close/wontfix) manager and host-manager webapps don't work in TC7 when using security manager
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Michal Haško <mhasko>
Component: tomcat7Assignee: Jean-frederic Clere <jclere>
Status: CLOSED EOL QA Contact: Libor Fuka <lfuka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: jdoyle, myarboro, pslavice, rmaucher, rsvoboda
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
When using JBoss Enterprise Web Server 2.1 with the security manager, running a <command>curl -I</command> on the URLs for the <literal>/manager</literal> and <literal>/host-manager</literal> web applications returns an expected <literal>HTTP 404 Not Found</literal> error. This occurs because when a security manager is enabled, XML descriptors for contexts are not deployed by default, since this is less secure. A workaround for this issue is to set <literal>deployXML="true"</literal> on the host to enable XML descriptors. This is a known issue is JBoss Enterprise Web Server 2.1.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-13 12:09:56 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:
Attachments:
Description Flags
catalina.out server log none

Description Michal Haško 2014-05-21 10:14:52 UTC
Created attachment 897895 [details]
catalina.out server log

Description of problem:
/manager and /host-manager webapps return HTTP 404 Not Found when running tomcat7 with security manager

Version-Release number of selected component (if applicable):
EWS-2.1.0-ER1

How reproducible:
100%

Steps to Reproduce:
1. unzip jboss-ews-application-servers-2.1.0-ER1-<platform>-<arch>.zip
2. cd jboss-ews-2.1/tomcat7/bin
3. ./startup.sh -security
4. curl -I http://localhost:8080/manager
   curl -I http://localhost:8080/host-manager


Actual results:
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 975
Date: Wed, 21 May 2014 10:13:23 GMT


Expected results:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Wed, 21 May 2014 10:12:49 GMT


Additional info:
catalina.out in attachment

Comment 1 Rémy Maucherat 2014-06-11 12:46:36 UTC
When a security manager is enabled xml descriptors for contexts are not deployed by default, since this is less secure. This can be fixed by setting deployXML="true" on the host to enable this back.

Comment 2 Libor Fuka 2014-06-11 13:39:23 UTC
We will test it with new config and this should be document.

Comment 3 Libor Fuka 2014-06-13 10:05:29 UTC
Verified with new config on EWS 2.1.0-ER2 on MS Windows and Solaris.

Comment 4 Libor Fuka 2014-06-13 10:11:32 UTC
Mandar, please document it - comm#1

Comment 6 Rémy Maucherat 2014-06-18 18:04:09 UTC
Actually, the error message is very good:
The web application with context path [/host-manager] was not deployed because it contained a deployment descriptor [/home/mhasko/jboss-ews-2.1/tomcat7/webapps/host-manager/META-INF/context.xml] which may include configuration necessary for the secure deployment of the application but processing of deployment descriptors is prevented by the deployXML setting of this host. An appropriate descriptor should be created at [/home/mhasko/jboss-ews-2.1/tomcat7/conf/Catalina/localhost/host-manager.xml] to deploy this application.

Instead of using deployXML, you can indeed copy that descriptor manually to enable the privilege for the manager webapp. So you get to decide which way should be documented ;)

Comment 7 Misha H. Ali 2014-07-09 06:43:10 UTC
Hi folks, this is not a docs bug, so it should not be assigned to a docs person. Setting this back to the original owner. Mandar, please clone this bug into a docs bug where you can track the work you are doing for it for docs while we let the developer own this bug.

Comment 8 Libor Fuka 2014-08-19 11:15:37 UTC
documented in 2.1.0 release notes as known issue