[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-06-29 Thread Lucas Kanashiro
** Tags removed: server-next -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1820288 Title: Tomcat Web Application Manager does not copy context configuration To manage notifications about this bug g

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-06-26 Thread Lucas Kanashiro
Thanks for all the debugging Christian! Very useful :) I also did some investigation and this behavior is expected by the Debian maintainers. According to the maintainers the current implementation does not support using copyXML=true, because in this case when the app is deployed the context file

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-03-30 Thread Bug Watch Updater
** Changed in: tomcat8 (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1820288 Title: Tomcat Web Application Manager does not copy context configuration

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-27 Thread Christian Ehrhardt 
Comparing build logs I see: Xenial: dh_fixperms # Make the/etc/tomcat8/Catalina/localhost directory writable by the tomcat user for PACKAGE in tomcat8 tomcat8-admin tomcat8-docs tomcat8-examples; do \ chmod 775 --verbose debian/$PACKAGE/etc/tomcat8/Catalina/localhost; \ done mode of 'debian/tomc

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-27 Thread Christian Ehrhardt 
Marking incomplete waiting for the debian discusison to happen to then jointly go on on this. Subscribing security to chime in if needed as it was initially a CVE ** Also affects: tomcat8 (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845393 Importance: Unknown Status

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-27 Thread Christian Ehrhardt 
The permission difference 775 vs 755 isn't in the same place. The chown is from the postinst, but the initial (and never changed) 775/755 is from unpack: If I just unpack tomcat8 on Xenial and Bionic I already get: root@x:~# ll /etc/tomcat8/Catalina/ total 3 drwxr-xr-x 3 root root 3 Feb 27 08:0

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-27 Thread Christian Ehrhardt 
Arr, I'm blind - it could have been so easy: lrwxrwxrwx 1 root root 12 Sep 9 19:47 /var/lib/tomcat8/conf -> /etc/tomcat8/ So actually /var/lib/tomcat8/conf/Catalina/localhost == /etc/tomcat8/Catalina/localhost/ And that is set in postinst in: chown -Rh root:$TOMCAT8_GROUP /etc/tomcat8/Catalina

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-26 Thread Christian Ehrhardt 
On install it already changes from: drwxr-xr-x 2 root root 2 Sep 9 19:47 localhost/ (unpack) to drwxr-xr-x 2 root tomcat8 2 Sep 9 19:47 localhost/ (after postinst and service start) This is confirmed by doing it without postinst: root@b:~# apt download tomcat8 Get:1 http://archive.ubuntu.com/

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-26 Thread Christian Ehrhardt 
The subfiles are installed via: debian/tomcat8-admin.install:1:debian/context/manager.xml /etc/tomcat8/Catalina/localhost/ debian/tomcat8-admin.install:2:debian/context/host-manager.xml /etc/tomcat8/Catalina/localhost/ But already when installing tomcat8 the path exists: $ ll /var/l

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-26 Thread Christian Ehrhardt 
Hi Arnaud, this is odd. In a new Bionic system permossions are ok: root@b:~# apt install tomcat8 tomcat8-admin root@b:~# ll /var/lib/tomcat8/conf/Catalina/ total 3 drwxrwxr-x 3 root tomcat8 3 Feb 26 14:16 ./ drwxr-xr-x 4 root root11 Feb 26 14:16 ../ drwxr-xr-x 2 root tomcat8 4 Feb 26 14:16 l

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2020-02-17 Thread Arnaud MERGEY
It seems that permission has been changed, in 16.04 localhost privileges are drwxrwxr-x 2 root tomcat8 4096 Dec 22 10:22 localhost In 18.04 drwxr-xr-x 2 root tomcat8 4096 Sep 9 19:47 localhost so write privilege has been removed for tomcat8 group in 18.04. Has manager comes with tomcat8 it doe

[Bug 1820288] Re: Tomcat Web Application Manager does not copy context configuration

2019-03-15 Thread Arnaud MERGEY
** Attachment added: "Simple application to reproduce the issue" https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1820288/+attachment/5246435/+files/hello.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launc