← Back to team overview

zorba-coders team mailing list archive

[Bug 898064] [NEW] Stringstream error

 

Public bug reported:

The following query:

import module namespace http = "http://www.zorba-xquery.com/modules/http-client";;
 
declare namespace h = "http://expath.org/ns/http-client";;

let $item := http:send-request(<h:request href="https://stream.twitter.com/1/statuses/sample.json?delimited=length";
                                                                             method="GET"
                                                                             username="foo"
                                                                             password="bar"
                                                          />,           
                                                        "https://stream.twitter.com/1/statuses/sample.json?delimited=length";,
                                                        ()
                                )[2]
return $item

Fails when text serialization is used:
zorba  -q test.xq -f --serialize-text
Zorba error [zerr:ZXQP0003]: internal error: basic_ios::clear

** Affects: zorba
     Importance: High
         Status: New

** Changed in: zorba
   Importance: Undecided => Critical

** Changed in: zorba
   Importance: Critical => High

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/898064

Title:
  Stringstream error

Status in Zorba - The XQuery Processor:
  New

Bug description:
  The following query:

  import module namespace http = "http://www.zorba-xquery.com/modules/http-client";;
   
  declare namespace h = "http://expath.org/ns/http-client";;

  let $item := http:send-request(<h:request href="https://stream.twitter.com/1/statuses/sample.json?delimited=length";
                                                                               method="GET"
                                                                               username="foo"
                                                                               password="bar"
                                                            />,           
                                                          "https://stream.twitter.com/1/statuses/sample.json?delimited=length";,
                                                          ()
                                  )[2]
  return $item

  Fails when text serialization is used:
  zorba  -q test.xq -f --serialize-text
  Zorba error [zerr:ZXQP0003]: internal error: basic_ios::clear

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/898064/+subscriptions


Follow ups

References