EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09332
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Strange behaviour of tabbed view
- To: <eprints-tech@ecs.soton.ac.uk>, Yuri <yurj@alfa.it>
- Subject: Re: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Strange behaviour of tabbed view
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Fri, 16 Jun 2023 11:01:51 +0100
Hi Yuri,
I am not aware of any standard _javascript_ in EPrints that could
do this. Based on the page that you are on I don't think this
could be cross site scripting related. One way to definitively
protect against XSS would be to make sure your webserver (Apache)
sets a content security policy that block external _javascript_
except maybe Google, if you have IRStats2 installed and maybe a
few other things depending on which plugins you use or any bespoke
functionality you have.
I have checked over the recollect plugin and cannot find any
obvious _javascript_ across the whole plugin. It does have a
"NewDeposit" screen plugin but that is loaded into key_tools
rather than eprint_actions. Also, even if they was in
eprint_actions, there would be no reason it would change what an
existing button in the Actions tab does.
I have not used the ReCollect plugin much and certainly not recently, so there may be something I have missed in the files I have inspected (taken from the Bazaar). If any one else had had recent experience with the ReCollect plugin, they may be better placed to advise.
Based on this being the first button in the actions tab, it feels like you or a colleague may have written some _javascript_ to fix another issue on a different page where the wrong button (for your requirements) is being displayed and you want the EPrint::View button rather than this other button to be displayed. I would look through you _javascript_/auto/ directory to see if you can find anything that refers to "EPrint::View";
Regards
David Newman
CAUTION: This e-mail originated outside the University of Southampton.Hi!
any idea on this topic? I forgot to add that it is 3.3.15 with ReCollect plugin.
Il 14/06/23 17:20, Yuri via Eprints-tech ha scritto:
CAUTION: This e-mail originated outside the University of Southampton.Hi!
when, as logged user, I go to the eprint tabbed view (details, actions, etc), the "New Version" button action change the action from Eprints::NewVersion to Eprints::View. You can see it in the gif (sorry for the low quality):
This happens on the page load. The html source is correct, as you can see some _javascript_ is changing the action when the page load. Where should I start to look at? Thanks for any info!
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] {Suspected SPAM} Strange behaviour of tabbed view
- From: Yuri <yurj@alfa.it>
- [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Strange behaviour of tabbed view
- From: Yuri <yurj@alfa.it>
- [EP-tech] {Suspected SPAM} Strange behaviour of tabbed view
- Prev by Date: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Strange behaviour of tabbed view
- Next by Date: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Re: {Suspected SPAM} Strange behaviour of tabbed view
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):