Hi Ard,

The dasl it's working fine. The problem is only when fetching data at live
environment and trying to get also binaries from preview.


*preview env. has to fetch:*
Binaries: /binaries/pdf-archief/jstl-quick-reference.pdf   (*at preview*)
Content: /content/nieuws/nieuws.xml (*at preview*)
*
live env. has to fetch:*
Binaries: /binaries/pdf-archief/jstl-quick-reference.pdf   (*at preview*)
Content: /content/nieuws/nieuws.xml (*at live*)

If I use this path at live env.:
/binaries/pdf-archief/jstl-quick-reference.pdf

How can I set that has to be fetch from default.preview?

The dasl will search at:
/default/files/*default.www*/binaries/pdf-archief/jstl-quick-reference.pdf

I think that I will have a file not found error.

Thanks,

Wilson








2008/7/28 Ard Schrijvers <[EMAIL PROTECTED]>

> Hello,
>
> is the dasl itself going wrong, or the fetching of the binary data later
> on? You need to add logic, that when the for example your url is
>
> /binaries/pdf-archief/jstl-quick-reference.pdf
>
> that regardless whether you are in live or preview, you need to fetch it
> from the preview location
>
> -Ard
>
>
>
> Hi,
>
> Here is the situation, we have a search page which searches articles and
> assets together.
> In the preview website, it works fine. When I try to search at live
> environment I get the following message:
>
> HTTP ERROR: 500
>
> Absolute path
> '/default/files/default.preview/binaries/pdf-archief/jstl-quick-reference.pdf'
> cannot be constructed if root path is configured as
> '/default/files/default.www'
>
> RequestURI=/vastgoedmarkt/live/content/uitgebreidzoeken
> Caused by:
>
> java.lang.IllegalArgumentException: Absolute path
>
> '/default/files/default.preview/binaries/pdf-archief/jstl-quick-reference.pdf'
> cannot be constructed if root path is configured as
> '/default/files/default.www'
>
>
> I understand the problem, but really don't know how to solve it.
> The assets are located at preview environment, so I have to hard-coded with
> an absolute path.
> It looks like that I can't get live and preview data together.
>
> Here is my generated (hippo:page tag) DASL:
>
>
> <d:searchrequest xmlns:dav="DAV:" xmlns:d="DAV:" xmlns:s="
> http://jakarta.apache.org/slide/"; xmlns:h="http://hippo.nl/cms/1.0";>
>    <d:basicsearch>
>        <d:select>
>            <d:prop>
>                <s:nrHits/>
>                <h:publicatiedatum/>
>                <h:type/>
>                <h:caption/>
>                </d:prop>
>                </d:select>
>            <d:from>
>                <d:scope>
>                    <d:href>/default/files/default.www</d:href>
>                    <d:depth>infinity</d:depth>
>                </d:scope>
>                <d:scope>
>                    <d:href>/default/files/default.preview/binaries</d:href>
>                    <d:depth>infinity</d:depth>
>
> <d:exclude>/default/files/default.preview/binaries/pdf-archief</d:exclude>
>                </d:scope>
>            </d:from>
>            <d:where>
>                <d:and>
>                    <d:not-is-collection/>
>                    <d:or>
>                        <d:eq>
>                            <d:prop>
>                                <h:type/>
>                            </d:prop>
>                            <d:literal>artikel</d:literal>
>                        </d:eq>
>                        <d:eq>
>                            <d:prop>
>                                <h:type/>
>                            </d:prop>
>                            <d:literal>asset</d:literal>
>                        </d:eq>
>                    </d:or>
>                    <d:or>
>                        <d:eq>
>                            <d:prop>
>                                <d:getcontenttype/>
>                            </d:prop>
>                            <d:literal>application/pdf</d:literal>
>                        </d:eq>
>                        <d:eq>
>                            <d:prop>
>                                <d:getcontenttype/>
>                            </d:prop>
>                            <d:literal>application/vnd.ms-excel</d:literal>
>                        </d:eq>
>                        <d:eq>
>                            <d:prop>
>                                <d:getcontenttype/>
>                            </d:prop>
>                            <d:literal>application/msword</d:literal>
>                        </d:eq>
>                        <d:eq>
>                            <d:prop>
>                                <d:getcontenttype/>
>                            </d:prop>
>                            <d:literal>text/xml</d:literal>
>                        </d:eq>
>                    </d:or>
>                    <d:contains>jstl</d:contains>
>                </d:and>
>        </d:where>
>        <d:limit>
>            <d:nresults>10</d:nresults>
>            <s:offset>0</s:offset>
>        </d:limit>
>    </d:basicsearch>
> </d:searchrequest>
>
>
> We are trying to get this working. The client is expecting a build today.
> It would be nice if you guys could help me out.
>
> Many thanks in advance!
>
> Wilson
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to