pkp / crossref-ojs

A Crossref plugin for OJS.
MIT License
2 stars 17 forks source link

Possibly incorrect string concatenation for XML name #30

Closed t-mayer closed 1 year ago

t-mayer commented 1 year ago

Dear pkp-Team, we were trying to deposit a large number of articles (ca. 100). However, the deposit action was resulting in errors. According to the error logs, the error message said that the file name was getting too long. After debugging I've noticed that the filename part is basically being reused with every iteration of the for-loop:

$objectsFileNamePart = $objectsFileNamePart . '-' . $object->getId();

Compared to the datacite plugin (where the variable is named $objectFileNamePart):

$objectFileNamePart = $objectsFileNamePart . '-' . $object->getId();

Not sure if this is only an issue with our installation or if I am missing something...

OJS Version: 3.3.0.3 crossref-Plugin version: 2.1.0.0

Best, Tina

bozana commented 1 year ago

PRs:

bozana commented 1 year ago

Thanks @t-mayer! Please see the PR (ojs stable-3_3_0) for the fix.