Skip Menu |

This queue is for tickets about the jmx4perl CPAN distribution.

Report information
The Basics
Id: 130534
Status: new
Priority: 0/
Queue: jmx4perl

People
Owner: Nobody in particular
Requestors: erempel [...] uvic.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: jmx4perl 1.12 tries unauthenticated request prior to authenticated
Date: Wed, 18 Sep 2019 18:26:52 -0700
To: bug-jmx4perl [...] rt.cpan.org
From: Evan Rempel <erempel [...] uvic.ca>
opening a new connection with         $jmx = JMX::Jmx4Perl->new(             product => 'tomcat',             url => "http://$host:$port/$app",             user => "$user",             password => "$passwd",             method => 'GET'         ); should always use a basic authenticated request, however, when looping through jmx attributes such as     foreach $test (keys(%tests)) {         $results = $jmx->get_attribute($tests->{$test});     } The access log for tomcat jolokia looks like 127.0.0.1 - -       [18/Sep/2019:17:08:21 -0700] "GET /jolokia/read/java.lang%3Atype%3DMemory/HeapMemoryUsage/used HTTP/1.1" 401 1034 127.0.0.1 - uvstats [18/Sep/2019:17:08:21 -0700] "GET /jolokia/read/java.lang%3Atype%3DMemory/HeapMemoryUsage/used HTTP/1.1" 200 168 127.0.0.1 - -       [18/Sep/2019:17:08:21 -0700] "GET /jolokia/read/java.lang%3Atype%3DThreading/ThreadCount HTTP/1.1" 401 1034 127.0.0.1 - uvstats [18/Sep/2019:17:08:21 -0700] "GET /jolokia/read/java.lang%3Atype%3DThreading/ThreadCount HTTP/1.1" 200 146 Am I doing something wrong to cause a non-authencticated request followed by the authenticated request? This is with jmx4perl 1.12 and jolokia 1.6.1 Evan.