ASF Bugzilla – Attachment 21419 Details for
Bug 44287
Using publication properties can cause exception
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
This patch fixes the bug.
patch.txt (text/plain), 1.61 KB, created by
Markus Angst
on 2008-01-23 10:52:31 UTC
(
hide
)
Description:
This patch fixes the bug.
Filename:
MIME Type:
Creator:
Markus Angst
Created:
2008-01-23 10:52:31 UTC
Size:
1.61 KB
patch
obsolete
>Index: C:/lenya/lenya-2.0-dev/src/modules-core/properties/java/src/org/apache/lenya/cms/cocoon/components/modules/input/PropertiesModule.java >=================================================================== >--- C:/lenya/lenya-2.0-dev/src/modules-core/properties/java/src/org/apache/lenya/cms/cocoon/components/modules/input/PropertiesModule.java (revision 611625) >+++ C:/lenya/lenya-2.0-dev/src/modules-core/properties/java/src/org/apache/lenya/cms/cocoon/components/modules/input/PropertiesModule.java (working copy) >@@ -289,14 +289,20 @@ > return; > } > try { >+ // >+ // Maybe there should be a publication method to get the the base URI >+ // with context:// protocol? >+ // We need the context:// protocol, the lenya:// protocol which is >+ // returned by pub.getSourceURI() does not work here. > filteringProperties = loadXMLPropertiesFromURI(filteringProperties, >- PROPERTY_NAME, true); >+ "context://" + Publication.PUBLICATION_PREFIX_URI + "/" + pubId >+ + "/" + PROPERTY_NAME, true); >+ pubInit.add(pubId); > } catch (IOException e) { >- getLogger().warn("Could not load properties from pub \""+pubId+"\".\n"+e); >+ getLogger().warn("Could not load properties from pub \""+pubId+"\".\n"+e); > } catch (Exception e) { > throw new ConfigurationException(e.getMessage()); > } >- pubInit.add(pubId); > } > > public void service(ServiceManager manager) throws ServiceException {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44287
: 21419