[
https://issues.apache.org/jira/browse/ROL-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glen Mazza closed ROL-1276.
---------------------------
Resolution: Unresolved
Roller 2.3 too old to test with; please try with the newest 5.0.x version of
Roller.
> Referrer spam can lead to OOM
> -----------------------------
>
> Key: ROL-1276
> URL: https://issues.apache.org/jira/browse/ROL-1276
> Project: Roller
> Issue Type: Bug
> Components: Referers and Trackbacks
> Affects Versions: 2.3
> Environment: Presumably relatively small heap limit.
> Reporter: Anil Gangolli
> Assignee: Roller Unassigned
> Priority: Minor
>
> Excerpt from an email on roller-user from koji lin <[email protected]>
> hi
> my roller site pops an error message like
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'g
> etTodaysReferers' in class
> org.apache.roller.presentation.velocity.PageModel th
> rew exception class java.lang.OutOfMemoryError : null
> and i found there is an post before
> http://www.nabble.com/Referer%27s-problems-tf1312047s12275.html#a3498051
> i found there is more than 10000 spam referer too in my site.
> after tracing the code, i think the problem is here
> referer.vm
> #macro( showReferers $max $maxWidth )
> <p>$text.get( "macro.referer.todaysHits" ) $pageModel.getDayHits()</p>
> #set( $refs = $pageModel.getTodaysReferers() )
> <ul class="rReferersList">
> #foreach( $ref in $refs )
> #if ($velocityCount <= $max)
> <li class="rReferersListItem">#refererDisplayUrl( $ref $maxWidth
> true)</li>
> #end
> #end
> </ul>
> #end
> looks like it fetches all the referes then limit the size,
> and if there are so many refere will cause the problem.
> my roller version is 2.3.
> koji
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira