Comments (6)
stuartlewis said:
More data from SF issue: 2541435
http://sourceforge.net/tracker/?func=detail&atid=119984&aid=2541435&group_id=19984
Date: 2009-03-31 22:27
Sender: dishimitsu
Hi Stuart,
Thanks for the fix. I actually opted to adjust the beforeDate and
afterDate functions to be exclusive. Same effect, since it only gets called
twice, and the other time doesn't matter if it's inclusive/exclusive.
Thanks,
Date: 2009-03-27 01:55
Sender: stuartlewisProject Admin
Hi Daniel
Thanks for submitting this bug report. Please could you try the attached
file and see if it fixes the issue.
(beforeDate and afterDate are inclusive, so if using them to test to see
if something falls outside of a date range, then you need to use !afterDate
instead of beforeDate, and !beforeDate instead of afterDate).
Thanks,
Stuart
from dspace.
stuartlewis said:
Patch from SF:
Index: dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java
===================================================================
— dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java (revision 3638)
+++ dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java Fri Mar 27 14:46:56 NZDT 2009
@@ -423,12 +423,12 @@
{
// first find out if we are constraining by date and
// if so apply the restrictions
- if (logLine.beforeDate(startDate))
+if (!logLine.afterDate(startDate)) { continue; }
- if (logLine.afterDate(endDate))
+if (!logLine.beforeDate(endDate)) { break; }
from dspace.
stuartlewis said:
stat-general seems to be broken. stat-monthly works OK.
from dspace.
stuartlewis said:
The patch for this bug seems to have broken stat-general. stat-monthly is OK.
I think this is because stat-monthly sets start and end dates, but stat-general doesn't (therefore in the code, start and end date are null, and the comparison fails). This seems to be a side effect of the fix for this issue.
The attached patch adds a check for null start and end dates.
Please could someone verify that stat-general is broken on trunk, and confirm the patch fixes it. Thanks.
from dspace.
kshepherd said:
I can confirm that stat-general was returning no data (using latest trunk - rev 4734), and that the problem is fixed after applying the attached patch.
from dspace.
stuartlewis said:
Thanks for the confirmation Kim.
Patch applied to SVN.
from dspace.
Related Issues (20)
- When answering a request for copy the email subject field will be ignored
- improve robustness of CrossRef metadata import via DOI: trailing whitespace causes URISyntaxException HOT 1
- SAF Export file limit is bypassed - these exports can consume arbitrary amounts of disk storage HOT 1
- Delete sync settings when profile is unlinked/disconnected from orcid HOT 2
- documentation: add configuration option cris.layout.thumbnail.maxsize HOT 2
- Labels for Radio buttons in Creative Commons License Selection Appear in English when French language selected HOT 4
- Docker images do not use recommended configuration for tomcat HOT 3
- authentication-ldap.cfg references unused configuration propety HOT 1
- Replace legacy CC API integration (api.creativecommons.org) HOT 1
- Creating new item version should always start from the latest item version HOT 1
- Admin UI: CSV export from search results can export unlimited amounts of items HOT 1
- Default form is displayed for a Publication when I specified a proper submission-name HOT 2
- DOIs are always minted during submission (if enabled) even though filters are correctly returning false
- search facets openByDefault by configuration
- solr search doesn't ignore '[' and ']' in metadata fields
- oai.harvester.rejectedHandlePrefix config does not work with multiple prefixes
- Blank describe section in item submission due to misconfigured submission-form file
- way to mark whether individual metadata items are ground-truth or machine-learning-generated HOT 2
- Default oai configuration isn't xml schema valid HOT 2
- The DSpace is trying to send emails from templates that do not exist at all HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dspace.