You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/12/07 20:12:01 UTC
[Bug 58698] New: HTTP Authorization Manager cannot load an auth.txt
it saved
https://bz.apache.org/bugzilla/show_bug.cgi?id=58698
Bug ID: 58698
Summary: HTTP Authorization Manager cannot load an auth.txt it
saved
Product: JMeter
Version: 2.13
Hardware: PC
OS: All
Status: NEW
Severity: minor
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: mike.palandra@dhxmedia.com
1) Start JMeter GUI
2) Add a HTTP Authorization Manager config element to the test plan, and
select it
3) Press "Add" button, and proceed to enter the following values for a single
authorization:
Base URL: http://jmeter.apache.org/
Username: user
Password: pass
4) Press the "Save" button to create "auth.txt"
5) Delete the authorization added in step 3
6) Press the "Load" button, and select the file created in step 4
7) Error message: "One or more errors found when reading the Auth file - see
the log file"
Relevant excerpt from log file:
"2015/12/07 13:14:18 ERROR - jmeter.protocol.http.control.AuthManager: Error
parsing auth line: 'http://jmeter.apache.org/ user pass
BASIC_DIGEST' "
Note: if "auth.txt" is edited in a text editor such that only the (3) fields
actually entered within JMeter are retained; i.e. Base URL, Username, and
Password, then this modified auth.txt file will load successfully.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58698] HTTP Authorization Manager cannot load an auth.txt it
saved
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58698
--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
Date: Sat Dec 12 15:35:52 2015
New Revision: 1719702
URL: http://svn.apache.org/viewvc?rev=1719702&view=rev
Log:
Followup to r1719699
There was already a test case for AuthManager, so use that one.
Correct offset for length of splitted array, so that old auth infos can be
read.
Bugzilla Id: 58698
Removed:
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/AuthManagerTest.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestAuthManager.java
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58698] HTTP Authorization Manager cannot load an auth.txt it
saved
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58698
Felix Schumacher <fe...@internetallee.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Date: Sat Dec 12 15:16:48 2015
New Revision: 1719699
URL: http://svn.apache.org/viewvc?rev=1719699&view=rev
Log:
Bug 58698: Correct parsing of auth-files in HTTP Authorization Manager.
Bugzilla Id: 58698
Added:
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/AuthManagerTest.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.