Metadata
- Source
- ENGAGE-213
- Type
- Improvement
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- N/A
- Reporter
- Svetoslav Nedkov
- Created
2009-12-10T12:10:34.000-0500 - Updated
2014-03-03T14:17:51.022-0500 - Versions
- N/A
- Fixed Versions
-
- 0.3b
- Component
- N/A
Description
The problem is that ajax calls through jQuery use the XMLHttpRequest object which exists for all modern browser but is supplied by a third party javascript for Rhino. This javascript called env.js in the version we are using in its XMLHttpRequest.send method doesn't send any payload through the connection - it writes out the HTTP headers and then jumps to read the response.
A patch will use the existing connection object, get an output stream from it and simply send the data after the HTTP headers are written.
Environments
Kettle, Rhino, env.js
Comments
-
Antranig Basman commented
2009-12-10T14:02:00.000-0500 Thanks so much for this report and patch, Sveto. I have taken the ideas from it and moved some of the implementation into pure Java code, where it is easier to have correct exception semantics. Some other existing code in env.js has also been subsumed into this, since it had a bare "close" statement which could have caused problems.
-
Antranig Basman commented
2009-12-15T03:55:36.000-0500 Fixed at revision 8879. However, we still need to upgrade to the "B" version of PonderUtilCore for some other minor fixes. A patch is supplied to demonstrate successful use of PUT to a Couch DB from Kettle.