You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/06/03 11:28:07 UTC
DO NOT REPLY [Bug 49374] New: Encoding of embedded element URLs
depend on the shell's LANG variable
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
Summary: Encoding of embedded element URLs depend on the
shell's LANG variable
Product: JMeter
Version: 2.3.4
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
AssignedTo: notifications@jakarta.apache.org
ReportedBy: apache.org@spam.ennes.nl
Created an attachment (id=25512)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25512)
Example script
Running the same script file twice, only with different character set in the
shell environment leads to different results:
$ LANG=en_GB.utf8 jmeter -n -t embedded-encoding.jmx -l
embedded-encoding-utf8.jtl
<httpSample t="338" lt="308" ts="1275556867434" s="true"
lb="http://www.rnw.nl/data/files/imagecache/list/images/lead/teaser%20Pygmalion%20©%20Julietta%20Cervantes.jpg"
rc="200" rm="OK" tn="Thread Group 1-1" dt="bin" by="6868"/>
$ LANG=en_GB.iso-8859-1 jmeter -n -t embedded-encoding.jmx -l
embedded-encoding-iso88591.jtl
<httpSample t="954" lt="0" ts="1275556913357" s="false"
lb="http://www.rnw.nl/data/files/imagecache/list/images/lead/teaser%20Pygmalion%20��%20Julietta%20Cervantes.jpg"
rc="404" rm="Not Found" tn="Thread Group 1-1" dt="text" by="0"/>
(Note the encoding of the copyright sign)
It seems that the URLs of the downloaded embedded resources are constructed
using the shell's environment. I would expect the containing/parent page
character set should be used instead.
Scripts and results are attached...
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #2 from Pieter Ennes <ap...@spam.ennes.nl> 2010-06-03 05:29:14 EDT ---
Created an attachment (id=25514)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25514)
Output ISO-8859-1
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #5 from Pieter Ennes <ap...@spam.ennes.nl> 2010-06-06 07:37:43 EDT ---
Sorry, forgot to mention that currently it can be reproduced by changing the
path in the script to:
http://www.rnw.nl/english/rnw_fp?page=3
And at some point this will go to page=4 etc...
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #4 from Pieter Ennes <ap...@spam.ennes.nl> 2010-06-06 07:36:03 EDT ---
Created an attachment (id=25532)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25532)
Content ISO-8859-1
That seems to lead to identical files for both charsets. (So, I'm only
attaching one)
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #3 from Sebb <se...@apache.org> 2010-06-05 18:03:21 EDT ---
I don't get the same problem, but it looks like the page has probably changed.
If you get the same problem with another page, please save the original page
contents using the Save Response to File Listener, and attach that here.
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #6 from Sebb <se...@apache.org> 2010-06-06 08:37:00 EDT ---
Using page=3 loads the image OK for me when I use file.encoding=iso-8859-1,
although the request display and JTL output is not correct.
If I use file.encoding=iso (invalid) then JMeter 2.3.4 does fail to load the
page.
Can you provide the first few lines of the jmeter.log files, upto at least
jmeter.JMeter: JMeterHome ?
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #7 from Pieter Ennes <ap...@spam.ennes.nl> 2010-06-06 09:47:21 EDT ---
Running with:
$ LANG=en_GB.UTF-8 jmeter
2010/06/06 14:41:32 INFO - jmeter.util.JMeterUtils: Setting Locale to en_GB
2010/06/06 14:41:32 INFO - jmeter.JMeter: Copyright (c) 1998-2009 The Apache
Software Foundation
2010/06/06 14:41:32 INFO - jmeter.JMeter: Version 2.3.4
2010/06/06 14:41:32 INFO - jmeter.JMeter: java.version=1.6.0_18
2010/06/06 14:41:32 INFO - jmeter.JMeter: java.vm.name=OpenJDK 64-Bit Server
VM
2010/06/06 14:41:32 INFO - jmeter.JMeter: os.name=Linux
2010/06/06 14:41:32 INFO - jmeter.JMeter: os.arch=amd64
2010/06/06 14:41:32 INFO - jmeter.JMeter: os.version=2.6.32-22-generic
2010/06/06 14:41:32 INFO - jmeter.JMeter: file.encoding=UTF-8
2010/06/06 14:41:32 INFO - jmeter.JMeter: Default Locale=English (United
Kingdom)
2010/06/06 14:41:32 INFO - jmeter.JMeter: JMeter Locale=English (United
Kingdom)
2010/06/06 14:41:32 INFO - jmeter.JMeter: JMeterHome=/usr/share/jmeter
And both of:
$ LANG=en_GB.ISO-8859-1 jmeter
$ LANG=iso-8859-1 jmeter
give:
2010/06/06 14:43:12 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2010/06/06 14:43:12 INFO - jmeter.JMeter: Copyright (c) 1998-2009 The Apache
Software Foundation
2010/06/06 14:43:12 INFO - jmeter.JMeter: Version 2.3.4
2010/06/06 14:43:12 INFO - jmeter.JMeter: java.version=1.6.0_18
2010/06/06 14:43:12 INFO - jmeter.JMeter: java.vm.name=OpenJDK 64-Bit Server
VM
2010/06/06 14:43:12 INFO - jmeter.JMeter: os.name=Linux
2010/06/06 14:43:12 INFO - jmeter.JMeter: os.arch=amd64
2010/06/06 14:43:12 INFO - jmeter.JMeter: os.version=2.6.32-22-generic
2010/06/06 14:43:12 INFO - jmeter.JMeter: file.encoding=ANSI_X3.4-1968
2010/06/06 14:43:12 INFO - jmeter.JMeter: Default Locale=English (United
States)
2010/06/06 14:43:12 INFO - jmeter.JMeter: JMeter Locale=English (United
States)
2010/06/06 14:43:12 INFO - jmeter.JMeter: JMeterHome=/usr/share/jmeter
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 49374] Encoding of embedded element URLs depend on
the shell's LANG variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49374
--- Comment #1 from Pieter Ennes <ap...@spam.ennes.nl> 2010-06-03 05:28:43 EDT ---
Created an attachment (id=25513)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25513)
Output UTF-8
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org