-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"identifier" field missing from .log file for Make Data Count, if I download right after publishing #11235
Comments
@Odysseas640 thanks for bringing this to our attention. @stevenwinship is working on MDC right now in this issue: He mentioned some bugs he's fixing in Counter Processor (we recently forked it to https://github.com/gdcc/counter-processor if you aren't aware). Let me check with him if this is one of them. |
FWIW - my guess at the root cause here is some caching - the call understands that the file is now released, and so writes a line, but it still has the old datasetversion state as draft, and so does not add its DOI. That could be fixed, or might go away with the SPA, but it is probably OK if counter-processor just ignores such a line. (Per the specs, we don't count downloads of files in draft versions, and this download, while coming from a newly published dataset, would have to be by the person who could have just downloaded from the draft version a moment earlier, so perhaps not a download that needs to be counted.) |
It looks like a known issue as this is called from writeGuestbookResponseRecord(GuestbookResponse guestbookResponse) //This version of the constructor is for the downloads tracked in FileDownloadServiceBean |
Both guestbookResponse.getDatasetVersion(); and guestbookResponse.getDataset().getReleasedVersion(); return null I can make the fix to counter_processor to ignore these lines |
counter-processor 1.06 has been released with the identifier bug fix https://github.com/gdcc/counter-processor/releases/tag/v1.06 |
When I publish and download a dataset without reloading the page (or browsing away and coming back), the entries in the .log file for that dataset have no "identifier" field, and this causes counter-processor-1.05 to fail when reading the log file.
Steps to reproduce:
While testing this with the v6.5 compose.yml file, I also noticed that the home page doesn't list any of the datasets I created.
This is my log file. The first 3 entries are from pressing "Access Dataset" without reloading the page first. The 4th entry is from reloading the page, and the other 2 are from pressing "Access Dataset" after reloading the page.
2025-02-10T12:44:32+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /api/access/datafile/20 - local://194efe364fc-4bb612cac37c 7040 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 - - - - - - - /api/access/datafile/20 -
2025-02-10T12:44:40+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /api/access/datafile/20 - local://194efe364fc-4bb612cac37c 7040 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 - - - - - - - /api/access/datafile/20 -
2025-02-10T12:45:32+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /api/access/datafile/20 - local://194efe364fc-4bb612cac37c 7040 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 - - - - - - - /api/access/datafile/20 -
2025-02-10T12:45:36+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /dataset.xhtml?persistentId=doi%3A10.5072%2FFK2%2FZGZHY9&version=DRAFT doi:10.5072/FK2/ZGZHY9 - - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 d7 grid tbd Admin, Dataverse 2025-02-10T12:44:14Z 1 - /dataset.xhtml?persistentId=doi%3A10.5072%2FFK2%2FZGZHY9&version=DRAFT 2025
2025-02-10T12:45:43+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /api/access/datafile/20 doi:10.5072/FK2/ZGZHY9 local://194efe364fc-4bb612cac37c 7040 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 d7 grid tbd Admin, Dataverse 2025-02-10T12:44:14Z 1 - /api/access/datafile/20 2025
2025-02-10T12:45:52+0000 172.18.0.1 fb8308858206b87b4145faadb4c3 - @dataverseAdmin /api/access/datafile/20 doi:10.5072/FK2/ZGZHY9 local://194efe364fc-4bb612cac37c 7040 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 d7 grid tbd Admin, Dataverse 2025-02-10T12:44:14Z 1 - /api/access/datafile/20 2025
The text was updated successfully, but these errors were encountered: