> When I run the sample query, I get:
> </Users/pjl/src/flwor/zorba/repo/bug-996593/zorba/build/URI_PATH/org/expath/ns
> /http-client.xq>:108,1: static error [err:XQST0059]: "http://www.zorba-
> xquery.com/modules/converters/html-options": target namespace not found
> for schema/module "http://www.zorba-xquery.com/modules/converters/html-
> options.xsd": Could not create stream resource; raised at
> /Users/pjl/src/flwor/zorba/repo/bug-996593/zorba/src/compiler/translator/translator.cpp:2069

There is a dependency of the external http-client module to the 
data-converters module:

FIND_PACKAGE(zorba_data-converters_module REQUIRED  HINTS 

In addition to the http-client I think you need to check it out to


I just double checked and the query works on ubuntu 12.04. with the
data-converters module installed.

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  http client throws error with no content-type header in http response

Status in Zorba - The XQuery Processor:

Bug description:
  in modules/com/zorba-xquery/www/modules/http-
  client.xq.src/http_response_parser.cpp the function
  HttpResponseParser::parse() throws an error if the response doesn't
  contain a content-type. In this case theCurrentCharset is "".

  the surprising part is that in the following code
  transcode::is_necessary("") returns true and an icu_streambuf is
  created internally with an empty charset:

  if ( transcode::is_necessary( theCurrentCharset.c_str() ) ) {
      new transcode::stream<std::istream>(
        theCurrentCharset.c_str(), theStreamBuffer

  in the constructor of the icu_streambuf (src/util/icu_streambuf.cpp)
  the following code throws the error:

  external_conv_( no_conv_ ? nullptr : create_conv( charset ) )

  the correct behavior would be if the http-client would not throw an
  error if the content-type header is missing.

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to