<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>4595</bug_id>
          
          <creation_ts>2006-07-14 11:24</creation_ts>
          <short_desc>wsrf-query with a bad XPath query returns &quot;null&quot;</short_desc>
          <delta_ts>2006-07-17 15:36:46</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Java WS Core</product>
          <component>globus_wsrf_core</component>
          <version>4.0.2</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charles Bacon">bacon@mcs.anl.gov</reporter>
          <assigned_to name="Jarek Gawor">gawor@mcs.anl.gov</assigned_to>
          <cc>jwscore-dev@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Charles Bacon">bacon@mcs.anl.gov</who>
            <bug_when>2006-07-14 11:24:14</bug_when>
            <thetext>ip-156:~/pkgs/globus-4.0.2 bacon$ bin/wsrf-query -s http://192.167.1.7:8888/wsrf/services/DefaultIndexService Foobar
null

This is the same result as if there were no results returned:
ip-156:~/pkgs/globus-4.0.2 bacon$ bin/wsrf-query -s http://192.167.1.7:8888/wsrf/services/DefaultIndexService &apos;/Foobar&apos;
null

I would suggest that the first should generate some kind of &quot;Invalid XPath expression: Foobar&quot; error, and the second should return something like &quot;No results found for XPath expression &apos;/Foobar&apos;&quot;.

We saw the &quot;null&quot; result in a tutorial today, and it didn&apos;t help the student understand what had gone wrong.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-07-14 16:25:28</bug_when>
            <thetext>Both expressions are valid. I will, however, update the client to display a nice error message if no results were returned.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-07-14 16:52:08</bug_when>
            <thetext>Committed a fix to trunk to display a nice error msg when no results are returned:

$ wsrf-query.bat -s http://192.168.1.102:8080/wsrf/services/ContainerRegistryService foo
Query did not return any results.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-07-17 15:36:46</bug_when>
            <thetext>Committed that fix to globus_4_0_branch too.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>