Bug 39466 - <content-dir> should not require implicit content/ subdirectory.
Summary: <content-dir> should not require implicit content/ subdirectory.
Status: RESOLVED FIXED
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: Trunk
Hardware: All All
: P1 major
Target Milestone: 1.4
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks: 39659 38071
  Show dependency tree
 
Reported: 2006-05-02 14:33 UTC by J
Modified: 2006-09-29 06:48 UTC (History)
0 users



Attachments
adds sample for content-dir. apply at src/pubs/default/config/publication.xconf (903 bytes, patch)
2006-09-15 20:00 UTC, Simon Litwan
Details | Diff
adds sample for content-dir. apply at src/pubs/blog/config/publication.xconf (1.04 KB, patch)
2006-09-15 20:01 UTC, Simon Litwan
Details | Diff
resolves inconsistency. apply at src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java (1.43 KB, patch)
2006-09-15 20:06 UTC, Simon Litwan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description J 2006-05-02 14:33:49 UTC
when i use content directory redirection in publication.xconf, lenya implicitly
looks in a "content/" subdirectory of the directory given in "src". this is not
desirable and should be fixed.

example:
<content-dir src="/srv/lenya-publications/mypub">

will cause lenya to look in /srv/lenya-publications/mypub/content.

if there are good reasons for the current behaviour, then at least change the
examples in pubs/default/config/publication.xconf to include the trailing
content/ directory.
Comment 1 J 2006-09-04 17:15:03 UTC
simon litwan reports a weird inconsistency:
http://thread.gmane.org/gmane.comp.cms.lenya.user/10404/focus=10453
Comment 2 Simon Litwan 2006-09-15 20:00:09 UTC
Created attachment 18871 [details]
adds sample for content-dir. apply at src/pubs/default/config/publication.xconf

samples reflect usage of content-dir. content dir can be any dir
(absolut/relative) which the authoring, live etc. dirs contents.
Comment 3 Simon Litwan 2006-09-15 20:01:14 UTC
Created attachment 18872 [details]
adds sample for content-dir. apply at src/pubs/blog/config/publication.xconf

samples reflect usage of content-dir. content dir can be any dir
(absolut/relative) which the authoring, live etc. dirs contents.
Comment 4 Simon Litwan 2006-09-15 20:06:35 UTC
Created attachment 18873 [details]
resolves inconsistency. apply at src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java

removes inconsistency of how getRealSourceURI handles relative or absolute path
getting from  Publication.getContentDir()
Comment 5 Andreas Hartmann 2006-09-29 13:48:14 UTC
I applied the patch, thanks a lot!