<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6862</bug_id>
          
          <creation_ts>2009-05-04 09:42:53 +0000</creation_ts>
          <short_desc>moki: Lines in rawHeaders end up with a &amp;#xD; character</short_desc>
          <delta_ts>2010-04-26 11:49:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="Abel Rionda">abel.rionda</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24999</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-04 09:42:53 +0000</bug_when>
    <thetext>Context
-----
This bug is related to bug 6822: the root of the bug is a mix between raw and decoded forms within the moki representation.


Description
-----
In the moki representation of a typical HTTP exchange, the list of HTTP headers appears in raw form. The problem is that it is actually a mix between raw and decoded form. Typically, end of lines in an HTTP header is CR LF, but end of lines in XML text entities is only LF, and so the CR is escaped and appears at the end of the line, while the LF is taken as a regular end-of-line character.

Example of a typical header line in the moki:
 Content-Type: text/html&amp;#xD;


Possible solutions
-----
rawHeaders could be:
1. the list of HTTP header fields, one per line, in which we should simply replace CR LF by LF
2. the raw HTTP header, but in that case we need to encode the text as base64.

I guess the main problem with 2. is that the resulting string won&apos;t be human-readable anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35255</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-04-26 11:49:50 +0000</bug_when>
    <thetext>Removed the offending &amp;#xD; character.

The reference moki representations of the whole test suite need to be re-validated, but other recent and more substantives changes in the Checker require that anyway.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>