You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2006/11/10 09:58:38 UTC
[jira] Closed: (COCOON-1933) [Patch] Automatic loading of flow
scripts in "flow/" must not load directories
[ http://issues.apache.org/jira/browse/COCOON-1933?page=all ]
Carsten Ziegeler closed COCOON-1933.
------------------------------------
Fix Version/s: 2.2-dev (Current SVN)
Resolution: Fixed
Only files with a specific ending (*.js) are loaded; everything else is ignored
> [Patch] Automatic loading of flow scripts in "flow/" must not load directories
> ------------------------------------------------------------------------------
>
> Key: COCOON-1933
> URL: http://issues.apache.org/jira/browse/COCOON-1933
> Project: Cocoon
> Issue Type: Bug
> Components: * Cocoon Core
> Affects Versions: 2.2-dev (Current SVN)
> Reporter: Alexander Klimetschek
> Fix For: 2.2-dev (Current SVN)
>
> Attachments: cocoon-flow-only-files.patch
>
>
> The automatic loading of everything inside flow/ also tries to load directories, which cannot be compiled like files. Happens typically when you have a subversion directory (.svn) or other version-control directory inside.
> The stacktrace for the problem:
> Caused by: org.apache.excalibur.source.SourceNotFoundException: file:/Users/alex/Mindquarry/hack/mindquarry-teamspace-web/mindquarry-teamspace-block/src/main/resources/COB-INF/flow/.svn/ doesn't exist.
> at org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:150)
> at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.compileScript(FOM_JavaScriptInterpreter.java:502)
> at org.apache.cocoon.components.flow.CompilingInterpreter$ScriptSourceEntry.getScript(CompilingInterpreter.java:112)
> at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.setupContext(FOM_JavaScriptInterpreter.java:453)
> at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:572)
> at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:109)
> ... 43 more
> Caused by: java.io.FileNotFoundException: /Users/alex/Mindquarry/hack/mindquarry-teamspace-web/mindquarry-teamspace-block/src/main/resources/COB-INF/flow/.svn (No such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:146)
> ... 48 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira