EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08830
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- To: John Salter <J.Salter@leeds.ac.uk>, "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, David R Newman <drn@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: Lee Paton <patonl@cardiff.ac.uk>
- Date: Thu, 13 Jan 2022 13:25:49 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi John Thanks for the reply, I haven’t changed the workflow during the upgrade but have in the past. It looks like the multiple fields within the component were added during the upgrade as they’re not in the workflow
on the eprints 3.3.12 system. I’ve removed the two problematic components and the workflow now displays as it should Thanks for your help – much appreciated Lee From:
John Salter <J.Salter@leeds.ac.uk> Hi Lee, The XML from the workflow does not match what it supplied by the RIOXX2 plugin. You (somehow) have one <component type="Field::RIOXX2"..> element, with multiple <field>s specified. The RIOXX plugin has a component for each field: https://github.com/eprintsug/rioxx2/blob/master/lib/workflows/eprint/rioxx2.xml The error is generated by this: https://github.com/eprintsug/rioxx2/blob/master/lib/plugins/EPrints/Plugin/InputForm/Component/Field/RIOXX2.pm#L24
- which results in a call to this: which checks for one (no more, no less) fields as a child element of the <component>. Was your ~/archives/[ARCHIVEID]/cfg/workflow/eprints/default.xml file hand-crafted at any point in your 3.4 journey? If you change the RIOXX stage in there to match the one supplied with the RIOXX plugin, it will hopefully work! Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of David R Newman via Eprints-tech Hi Lee, I have not been able to reproduce the same issues as you reported when tying to edit an item. I did initially get some errors in the apache log relating to not having the Generic Reporting Framework plugin installed but this did not give a 500 error in
my web browser and was easily remedied by installing this plugin through the Bazaar.
One issue may be the versions of the RIOXX2 and Generic Reporting Framework plugin you are running. I have just installed the following versions: reports=3.1 rioxx2=1.0.5 Which versions do you have installed? You can check this most easily by going to the /cgi/counter page for your repository in a web browser. Looking at the first line of your errors, it reports a problem with calling isa method on an undefined value on line 8. I have grepped through the code and found that this could relate to some new as of 3.4.3 configuration code that was added to ensure
local passwords are no longer than a certain length, (in this case 200 characters), which was identified as a potential vector of attack. It is possible that in line 8 of lib/cfg.d/user_password_maxlength.pl there is no user defined so this generates this first error message. However, I am not sure how this could have anything to do with the RIOXX2 plugin. My advice would be to modify line
8 of the file from: return unless $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret"; to: return unless defined $user && $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret"; And see if that remedies your issue. I am not sure how this trigger could be called without $user (or more generally a dataobj that might be a user) being defined. However, it is the only place I could find the isa method called on line 8 of a file. Regards David Newman On 12/01/2022 16:36, Lee Paton wrote:
|
- Follow-Ups:
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: Lee Paton <patonl@cardiff.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- References:
- [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: Lee Paton <patonl@cardiff.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: Lee Paton <patonl@cardiff.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- From: Lee Paton <patonl@cardiff.ac.uk>
- [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- Prev by Date: Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- Next by Date: Re: [EP-tech] Eprints 3.4.3 RIOXX2 plugin issue
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):