cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37158] New: - ImportPackages in flowscript causes a useless session to be created
Date Wed, 19 Oct 2005 09:01:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37158>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37158

           Summary: ImportPackages in flowscript causes a useless session to
                    be created
           Product: Cocoon 2
           Version: 2.1.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Flowscript
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: bdelacretaz@codeconsult.ch


In flowscript, writing this

importPackage(Packages.org.apache.cocoon.components.modules.input);

function f() {
  var module  = cocoon.getComponent(InputModule.ROLE +
"Selector").select("someXmlFileModule");
...

causes a session to be created, apparently when InputModule.ROLE is accessed.

This is unexpected as no "user-level" modification is made to the global scope.

If importPackage is not used as below, no session is created:

function f() {
  var module  =
cocoon.getComponent(Packages.org.apache.cocoon.components.modules.input.InputModule.ROLE
+ "Selector").select("someXmlFileModule");


I don't know if the fix is easy, to avoid a session being created in the first
case, but we should at least create some tests to check exactly when sessions
are created. 

I hope to do that soon, but I shouldn't write "I hope to do that soon here" as I
don't know when soon will be ;-)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message