[
http://jira.dspace.org/jira/browse/DS-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10982#action_10982
]
Mark Diggory commented on DS-264:
---------------------------------
This patch was not actually the final solution. The final solution to this
ticket moved UsageEvent logging out into a separate Cocoon Action activated
prior to CommunityViewer, CollectionViewer and ItemViewer transformer calls in
the ArtifactBrowser sitemap
> XMLUI misses logging UsageEvent on requests fulfilled from the cache (with
> proposed fix)
> ----------------------------------------------------------------------------------------
>
> Key: DS-264
> URL: http://jira.dspace.org/jira/browse/DS-264
> Project: DSpace 1.x
> Issue Type: Bug
> Components: XMLUI
> Affects Versions: 1.5.2, 1.6.0
> Environment: MacOSX/java1.5/oracle, 1.5.2
> Reporter: Larry Stone
> Assignee: Mark Diggory
> Priority: Minor
> Fix For: 1.6.0
>
> Attachments: ue-diff.txt
>
>
> The calls to generate UsageEvents in the XMLUI are in the addBody() method,
> which never get called when the request is satisfied out of cocoon's cache.
> In a quiescent test environment this resulted in only one usage event for
> each distinct Collection, Community, and Item, no matter whether it was
> requested by different logged-in users or from different IP addresses. Even
> in a busy production environment, it would probably miss counting many of the
> requests for a popular Item.
> The patch moves UsageEvent calls up to the getValidity method, which also
> calls the system log that seems to reflect activity accurately. Someone who
> really knows the XMLUI internals ought to check it over, though.
> Also, the UsageEvent in CommunityViewer.java was incorrectly identifying the
> object type as an ITEM; the patch fixes that too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel