Marco Casavecchia Morganti wrote:

Sorry.. never mind.
I solved it by my self.. :O(

Good bye to all.

Hello all,

Can anyone tell me why this search by an existent UID doesn't works form me?

My dasl query is the following:
--------------------------------------
<?xml version="1.0" encoding="utf-8"?><request xmlns="http://hippo.nl/webdav/1.0"; xmlns:d="DAV:" xmlns:h="http://hippo.nl/cms/1.0"; xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"; target="webdav://localhost:60000/default/files/default.preview/content/repository" method="SEARCH">
  <header name="Depth" value="infinity"/>
  <body>
    <d:searchrequest>
      <d:basicsearch>
        <d:select>
          <d:prop>
            <d:displayname/>
            <h:caption/>

            <h:type/>
            <h:UID/>
          </d:prop>
        </d:select>
        <d:from>
          <d:scope>

            <d:href/>
            <d:depth>infinity</d:depth>

          </d:scope>
        </d:from>
        <d:where>
          <d:and>
            <d:not-is-collection/>
            <d:eq>
              <d:prop><h:uid/></d:prop>
              <d:literal>18c567be0a0663fa00de1f9027cdb2c6</d:literal>

            </d:eq>
          </d:and>
        </d:where>
        <d:orderby>
          <d:order>
            <d:prop><h:index/></d:prop>
            <d:ascending/>
          </d:order>
        </d:orderby>

                <d:limit>
                    <d:nresults>1</d:nresults>
                </d:limit>
      </d:basicsearch>
    </d:searchrequest>
  </body>
</request>
-------------------------------------

But the result is:
------------------------------------
<webdav:response target="http://localhost:60000/default/files/default.preview/content/repository"; method="SEARCH">
<webdav:status code="207" msg="Multi Status"/>
<webdav:header name="Date" value="Thu, 29 May 2008 10:14:32 GMT"/>
<webdav:header name="Server" value="Jetty/5.1.12 (SunOS/5.10 sparc java/1.5.0_10"/>
<webdav:header name="Content-Type" value="text/xml; charset="UTF-8""/>
<webdav:header name="Transfer-Encoding" value="chunked"/>
<webdav:body>
<D:multistatus/>
</webdav:body>
</webdav:response>
------------------------------------

Thanks for your help.



--
By MCM.

<< La teoria è quando si sa tutto ma non funziona niente.
La pratica è quando tutto funziona ma non si sa il perché.
In ogni caso si finisce con il coniugare la teoria con la pratica: non funziona niente e non si sa il perché. >>
(A. Einstein)
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to