Item10581: location of rsrc directory has changed and is not being reflected in the rewritten html
Current State: Closed
Released In: n/a
Target Release: major
Under earlier versions of the plugin a
directory was written into the directory for each web. For example, here's what
the layout looked like relative to
The links to the contents of the
directory were rewritten in the HTML as a relative URL, e.g.
Version 2.20 has collapsed the multiple rsrc directories into one, so
that they are now
The links are still written assuming the old directory layout (as
rather than as e.g.
) and thus are failing. Published subwebs (which don't work in 2.20 for other reasons, another bug report is forthcoming) are even more estranged from the
On a different note, while collapsing the
directories into one will save space, it makes it difficult to create a top-level site based on a single web. For example, in one current configuration, I have a web whose published version is exposed directly at the top level of the site (e.g.,
in the above example). If the
directory is at the same level as
it's effectively outside of the Apache DocumentRoot
On this site I don't have the authority to configure the server to alias the
URL appropriately; I can only drop files into the directory I'm given, which is at the top level. The new behavior breaks this configuration.
- 31 Mar 2011
I've attached a draft patch which fixes up most of the behavior by rewriting the paths to the resources relative to the top level rsrc directory. I don't think it's a complete solution.
- 03 Apr 2011
patch modified to ensure that the path to a resource is modified only once.
- 04 Apr 2011
I've settled on another approach: adding a
option which allows the user to specify its location relative to the top of the site; this allows one to locate it within one of the output web directories to get a self contained directory. E.g., if I'm publishing
creates it as a subdirectory of the output
- 05 Apr 2011
A think I understand what you are doing, but the patch is against an old codebase and i can't work out how to merge it. Can you either check in the fix, or give me a patch against the latest code? Thanks.
crap, I worked it out. My bad.
- 25 May 2011