[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    RE: /manage/text/list fails in 9.0.31, works in 9.0.27
From:       Vishal Agrawal <vagrawal () jmawireless ! com>
Date:       2020-02-27 23:40:12
Message-ID: DM6PR08MB40256DD3492B29A3CC67C1EACAEB0 () DM6PR08MB4025 ! namprd08 ! prod ! outlook ! com
[Download RAW message or body]

Hello Chris,

I uninstalled existing tomcat and cleaned up /opt/tomcat folder before installing \
9.0.31 or 9.0.27.

Thanks,
Vishal

-----Original Message-----
From: Christopher Schultz <chris@christopherschultz.net> 
Sent: Thursday, February 27, 2020 3:57 PM
To: users@tomcat.apache.org
Subject: Re: /manage/text/list fails in 9.0.31, works in 9.0.27

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vishal,

On 2/26/20 13:56, Vishal Agrawal wrote:
> Hello,
> 
> I have manager endpoint enabled in my tomcat install.
> 
> When I list the manager endoing in tomcat 9.0.31, I get a 401 
> Unauthorized error -
> 
> curl -u tomcat:secret http://127.0.0.1:8080/manager/text/list
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>401 
> Unauthorized</title> ... </html>
> 
> 
> However, when I call it in tomcat 9.0.27 it works as expected...
> 
> curl -u tomcat:secret http://127.0.0.1:8080/manager/text/list in 
> tomcat 9.0.27 it works as expected... OK - Listed applications for 
> virtual host [localhost] /manager:running:0:manager
> 
> The password is configured in tomcat-users.xml using the output from 
> /opt/tomcat/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fdi
> gest.sh&c=E,1,iNYuMwbX1rmQeOFzhvx9FnB7uAef4peghBPRYSNlsHcL8eUumVj-lixL
> EQftagDyvdZD0599zUvhRCjcseLjOOlV7M7QsrQxsalxBJxEWbM9BNpunaYFFp8,&typo=
> 1 -a sha-512 -h 
> org.apache.catalina.realm.MessageDigestCredentialHandler secret
> secret:ca858d2d5c3e86702ed03b90b1808205a4dc795330deac90380dd3642bcab92
a$1$b5affd62902693d01f95bb8798b9c02982dbe58038d5e5064a77fa8a00951561cf63
d5491a33d86fb2bee930335f3e3ceb324a8a8459d2966231392072ff4d82
> 
> 
> > cat /opt/tomcat/conf/tomcat-users.xml
> ... <role rolename="manager-script"/> <user username="user1"
> password="7244776efd3bbf6f9a56dfdc6443f898d39b13623ea349929ecf66748cde
0923$1$22aab528369d6c453adca7e4928fff24f77110d15bd2e9786554c2dcdf628847a
88f9a459e8cec0c942545a83156ca737eb0edb700563d00f926cb8f29fc4d73"
> roles="manager-script"/> ...
> 
> I compared the conf folders in both 9.0.27 and 9.0.31 and they appear 
> to be identical.
> 
> Can someone please help me what I may need to configure more?

Did you upgrade from one to the other? If you upgraded, then you likely have a new \
tomcat-users.xml file in the new Tomcat 9.0.31 directory, and it does not contain the \
users and/or roles that your 9.0.27 install has.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - \
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.enigmail.net%2f&c=E,1,VK6kGGDX \
roqi-2uJxZQX9CEubnndF3hGheso8Xf1o0tH_A7fkt8BQnPyOM9gjkfKOMbwgZULJ9ptsLram0mptHVyTfCuIiugi6Sfq7NsSRrtS2rw&typo=1


iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5YOzAACgkQHPApP6U8
pFhwrg//UIUGtAH5eRo6BHmcvnKGURU3+9GKp3+zwyJwHY5sb9bM05uewSV8MVDy
+vaIJzJJpKM+iLtCrDNUjW7V0f1fcr8tt+wmD1JJgHPElkFaT3R2H6XKSNgM9y9I
SNTtv79AoJED0zswj71Q+4DHMsl+ryLqKf+AzTSkqU7nnqXIeD0P2bUwUd8VP9WS
mxayr/yYTZk5wKrRi2xgPw4vTmMtditxAGNWdBhOaWejLHi73vHgYh33B219OzkL
BWWgzCahpr6bFPgPMkNQcxP//YQVyz9HTyXgc1cdD/TOPMk21FHW/4Hiuzq+pPYL
4NPY2uAQdZ1Q8tVxcVTHM3E1AbUfzytGswtRSDrrs5g9iity/d6fKb/Xa33X5Y3p
BcPsArExDiYAbDL/iftXHSgcembNC6XxNpPUMFtETRsOAiMLk8c3YTuD+hj4yPyw
+mTLV9QVicBK9xJw/f3X8Oohl1nIPT7zgxs9jABLn0tNljgKlGN4O+DzM6B2Fz3J
WM7oQgHdI/dpTS3EVinbthJY4gEnSbZz/rDSgYJXw2prbVq/eCWrmWSM/OhDBr5s
d9zzlZDNeednxWQEb7xB2S3UcwILktFIG/tGLZYDyIS9Svu72pBpqF/ovYqnrxBN
cpmAYuq8AMFzjgnIhv7c/14co4p0Hwi3EMbCqqPEWnq1RwQArNo=
=JLXl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic