resourceDirectory and html files base href behavior

Bug #447420 reported by macadames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Undecided
Unassigned

Bug Description

HI,

I'm trying to use resourceDirectory to put external products inside, These products could have html, javascript and any kind of resources.

Here is my problem

I create a resource directory in zcml
============================

    <browser:resourceDirectory
        name="myresourcedir"
        directory="myresourcedir"
        />

I create the resource directory and some resources inside
==============================================

i create a directory named "myresourcedir"
inside i put an image named "test.png"
inside i create a subdirectory called "toto"
inside this subdirectory i create a html file called "test.html" with this content

<html>

<body>
    <img src="../test.png" />
</body>

</html>

I'm testing the result
================

connecting to http://localhost:8080/mysite/++resource++myresourcedir/toto/test.html

Everything is ok

Now i'm changing the content of test.html
================================

The new content is

<html>

<head>

</head>

<body>
    <img src="../test.png" />
</body>

</html>

I've just added the head section

Here is the error
=============

connecting to http://localhost:8080/mysite/++resource++myresourcedir/toto/test.html

the image "test.png" is no more displayed

we got a 404 error for this image because the browser is searching for

http://localhost:8080/mysite/++resource++myresourcedir/toto/test.png

It seems that base href is not good

Many thanks

Revision history for this message
macadames (jeanmat-grimaldi) wrote :

You can close the ticket.

Bug caused by a third party product.

Sorry

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 447420] Re: resourceDirectory and html files base href behavior

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

macadames wrote:
> You can close the ticket.
>
> Bug caused by a third party product.
>
> Sorry
>

 status invalid

Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrTNNQACgkQ+gerLs4ltQ4QpQCZATdpHI6Q866vgPdgJ3NhUcRp
gSoAnA8rKtdDaxQ3XbS69BSF0J95QBBB
=07Pv
-----END PGP SIGNATURE-----

Changed in zope2:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.