Bugs item #1967482, was opened at 2008-05-19 17:25 Message generated for change (Settings changed) made by tdonohue You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=119984&aid=1967482&group_id=19984
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 1.5 >Status: Closed >Resolution: Out of Date Priority: 5 Private: No Submitted By: Larry Stone (lcs8) Assigned to: Nobody/Anonymous (nobody) Summary: DSpace OAI-PMH driver aborts context prematurely Initial Comment: Through a complex web of calls, the getSchemaLocations() method in org.dspace.app.oai.DSpaceOAICatalog can invoke the org.dspace.app.oai.PluginCrosswalk's isAvailableFor() method, which in turn calls the crosswalk plugin's canDisseminate(). Unfortunately, at the time it makes the chain of calls leadign to canDisseminate(), it has already aborted the context with which it created the Item that gets passed to the crosswalk. Since most crosswalk plugins always return 'true' this hasn't been an issue, but if you decide to implement a crosswalk that, say, has to examine the bundles and Bitstreams of an Item to compute the return value, you may actually need to use that Item's Context. So, the bug is that _in the context[sic] of an OAI-PMH request executing getSchemaLocations()_, the crosswalk's canDisseminate() method gets called with a dead Item. If the crosswalk code attempts to list teh Bundles of that item, it gets an NPE. Now the good news, there is a patch for this bug in the patch queue. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=119984&aid=1967482&group_id=19984 ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Dspace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-devel
