Closed GoogleCodeExporter closed 9 years ago
Original comment by herve.qu...@gmail.com
on 22 Feb 2011 at 7:28
Use apache httpcomponent 4.1 beta
Original comment by emmanuel...@gmail.com
on 24 Feb 2011 at 6:05
http-request-001 : pass
http-request-002 : pass
http-request-003 : pass
http-request-004 : pass
http-request-005 : pass
http-request-006 : pass
http-request-007 : pass
http-request-008 : pass
http-request-009 : pass
http-request-010 : pass
http-request-011 : pass
http-request-012 : pass
http-request-014 : pass
multipart-001 : pass
multipart-002 : pass
multipart-003 : pass
multipart-004 : pass
http-request-012 : fail
multipart-005 : fail
Original comment by emmanuel...@gmail.com
on 6 Mar 2011 at 11:48
http-request-013 : pass
multipart-005 : fail
Original comment by emmanuel...@gmail.com
on 7 Mar 2011 at 10:19
error tests pass
multipart-005 fail but response message seems ok => may be fail due to problem
with test xpath on choose step
Original comment by emmanuel...@gmail.com
on 11 Mar 2011 at 8:23
I'm having a look at this problem right now.
Original comment by herve.qu...@gmail.com
on 13 Mar 2011 at 3:42
I am not sure if this is new with the fixes for issue 30 but from what I get
from the logs:
TRACE xproc.Environment xpathContextNode = <c:response
xmlns:c="http://www.w3.org/ns/xproc-step" status="200">
<c:body xmlns:c="http://www.w3.org/ns/xproc-step"
content-type="multipart/related; boundary="=-=-=-=-=""
encoding="base64">LS09LT0tPS09LT0KQ29udGVudC10eXBlOiB0ZXh0L2h0bWwKQ29udGVudC1sZW5ndGg6IDIwNgoK
...
TRACE xproc.Environment evaluateXPath() select =
/c:response/c:header[@name='Content-Type' and @value='multipart/related;
boundary="=-=-=-=-="']
TRACE step.ChooseStepProcessor result =
net.sf.saxon.s9api.XdmEmptySequence@3de6696c
TRACE step.ChooseStepProcessor result = false
It seems to me that the problem is related to some character escaping (the
double quote from the boundary attribute).
Original comment by herve.qu...@gmail.com
on 13 Mar 2011 at 3:48
Well, actually the problem is due to the response containing c:body rather than
c:header...
Emmanuel, do you think this error comes from the step processor itself or is it
related to some low-level flaw with the pipeline processing?
Original comment by herve.qu...@gmail.com
on 13 Mar 2011 at 3:55
if i comment the choose step, the serialization seems correct. May be you
missed rev 1166 on my clone (HttpResponseHandler.java).
<c:response xmlns:c="http://www.w3.org/ns/xproc-step" status="200">
<c:header name="Date" value="Sun, 13 Mar 2011 19:47:20 GMT"/>
<c:header name="Server" value="Apache"/>
<c:header name="Keep-Alive" value="timeout=2, max=100"/>
<c:header name="Connection" value="Keep-Alive"/>
<c:header name="Transfer-Encoding" value="chunked"/>
<c:header name="Content-Type" value="multipart/related; boundary="=-=-=-=-=""/>
<c:multipart xmlns:c="http://www.w3.org/ns/xproc-step" boundary="=-=-=-=-="
content-type="multipart/related; boundary="=-=-=-=-="">
<c:body xmlns:c="http://www.w3.org/ns/xproc-step" content-type="text/html"><html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Hello world!</title>
</head>
<body>
<h1><img src='helloworld.png' alt='Hello World!' /></h1>
<p>This is a hello world document.</p>
</body>
</html>
</c:body>
<c:body xmlns:c="http://www.w3.org/ns/xproc-step" content-type="image/png"
encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAPwAAABJCAYAAAAZrEuhAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A
/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cKDw4nLDO/fUwAAAAZdEVYdENv
Original comment by emmanuel...@gmail.com
on 13 Mar 2011 at 8:02
I merge trunk with my clone and it works.
Good job Hervé !
Original comment by emmanuel...@gmail.com
on 13 Mar 2011 at 8:19
Original issue reported on code.google.com by
herve.qu...@gmail.com
on 7 Feb 2011 at 7:52