** Changed in: zorba
    Milestone: None => 2.5

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

  Executing lib_only query invokes URI resolution process

Status in Zorba - The XQuery Processor:

Bug description:
  The following query:

  module namespace foo = "http://www.zorba-xquery.com/foo";;

  declare function foo:test() {
    if (fn:true())
    then 1
    else $a

  (which is in the Zorba source as bin/test/mymod.xq) actually contacts
  www.zorba-xquery.com via HTTP and attempts to download /foo.xq. This
  means that the module namespace URI is undergoing URI resolution. I
  cannot imagine why this would be the case, but it leads not only to
  slowness but can cause the query to change behaviour depending on what
  www.zorba-xquery.com chooses to return. (In the original test case,
  the URL was at 28msec.com, and when 28msec.com changed from raising a
  404 error to returning a 200 with an error HTML page, the query
  started failing with a compilation error. Apparently Zorba was
  attempting to actually compile the HTML as an XQuery.)

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