[Bug 663] New: HopObject.getCollection() not respecting "accessname"

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug 663] New: HopObject.getCollection() not respecting "accessname"

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=663

           Summary: HopObject.getCollection() not respecting "accessname"
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: HopObject Functionality
        AssignedTo: helma-dev@...
        ReportedBy: nostalgiker@...


Created an attachment (id=111)
 --> (http://dev.helma.org/bugs/attachment.cgi?id=111)
error when retrieving HopObj by accessname on programmatic collection

getting HopObjects by accessname does not work for programmatic collections
created with getCollection().

i tried the minimal case HopObject.getCollection({"accessname":
"ALIAS"}).get("validalias") and more complex ones, all fail with "Error
retrieving Node" - see strace attached.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 663] HopObject.getCollection() not respecting "accessname"

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=663





--- Comment #1 from s o <nostalgiker@...>  2009-05-06 14:30:46 ---
also note that a normal collection fails silently (and returns null) when no
object with the requested accessname exists

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 663] HopObject.getCollection() not respecting "accessname"

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=663





--- Comment #2 from s o <nostalgiker@...>  2009-05-11 13:21:46 ---
probably related:

this throws NPE when trying to load the one story with an accessname, all other
stories before and after that are loaded correctly:
{{{
var coll = Story.getCollection( {"alias": "STO_ALIAS"} );
coll.list(0,10);
}}}


[2009/05/11 12:18:33] [ERROR] [ws2fm4-1] Error in prefetchNodes()
java.lang.NullPointerException
        at helma.objectmodel.db.DbKey.hashCode(DbKey.java:82)
        at helma.objectmodel.db.SyntheticKey.hashCode(SyntheticKey.java:77)
        at java.util.HashMap.put(HashMap.java:418)
        at helma.util.CacheMap.put(CacheMap.java:243)
        at helma.swarm.SwarmCache.put(SwarmCache.java:221)
        at
helma.objectmodel.db.NodeManager.registerNewNode(NodeManager.java:357)
        at
helma.objectmodel.db.NodeManager.prefetchNodes(NodeManager.java:1318)
        at
helma.objectmodel.db.WrappedNodeManager.prefetchNodes(WrappedNodeManager.java:167)
        at helma.objectmodel.db.SubnodeList.prefetch(SubnodeList.java:157)
        at helma.objectmodel.db.Node.prefetchChildren(Node.java:1576)
        at helma.scripting.rhino.HopObject.prefetchChildren(HopObject.java:449)
        at helma.scripting.rhino.HopObject.jsFunction_list(HopObject.java:502)

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 663] HopObject.getCollection() not respecting "accessname"

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=663


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hannes@...
   Target Milestone|---                         |1.7.0




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 663] HopObject.getCollection() not respecting "accessname"

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=663


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev