You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/11/19 03:48:28 UTC

DO NOT REPLY [Bug 46237] New: add skeleton-key http authentication to AccessLogSampler

https://issues.apache.org/bugzilla/show_bug.cgi?id=46237

           Summary: add skeleton-key http authentication to AccessLogSampler
           Product: JMeter
           Version: 2.3.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: ej@ir.iit.edu


Created an attachment (id=22889)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22889)
SkeletonAuthManager.java, SkeletonAuthorizationFilter.java, and
FilterChain.java

The attached source files add a SkeletonAuthorizationFilter for the
AccessLogSampler that reads the HTTP basic auth field of the log file and uses
it plus a pre-configured skeleton key password via the "skeleton.password"
property to authenticate the corresponding request.  This is useful for load
testing sites whose logs include behaviors that would differ across users.  The
test environment can be updated such that everyone's password is "skeleton" and
authentication will be performed appropriately.  

This is achieved without patching any existing jmeter source.  

Also included is a FilterChain which allows specifying multiple filters as
properties and calls them all (in no particular order), i.e.

# use cookies per ip (session) and basic auth
accesslog.sampler.filterchain.1=org.apache.jmeter.protocol.http.util.accesslog.SkeletonAuthorizationFilter
accesslog.sampler.filterchain.2=org.apache.jmeter.protocol.http.util.accesslog.SessionFilter

PS:  someone should add the ability for the log parsers to stop the test when
they hit the end of the file

PPS: i had to implement TestCloneable on these Filters otherwise they would be
silently ignored by AccessLogSampler  This is bad behavior and potentially a
bug, as LogFilter does not implement it.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 46237] add skeleton-key http authentication to AccessLogSampler

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46237





--- Comment #1 from Eric Jensen <ej...@ir.iit.edu>  2008-12-18 09:56:06 PST ---
Created an attachment (id=23037)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23037)
updated version that grabs the username regexp from a property


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org