clarin-dspace
clarin-dspace copied to clipboard
version drop down does not work on Firefox
The version drop down (as used for example in https://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-2837) normally gives the option to click the different versions to go directly to their submission pages. This does not work in Firefox (tested in 61.0.1). The drop down appears normally, but none of the versions is clickable.
Additionally to the behaviour described above: the drop down seems to be "see through" in the sense that when the mouse hovers over the drop down in a location such that there is a clickable link below it, clicking will open the webpage linked by the item below.
Tested with Firefox Quantum 62.0.3 (64-bit), Mozilla Firefox for Ubuntu canonical - 1.0
At least the installation at eurac, seems to have degraded into the behaviour of #27. See, for example, http://hdl.handle.net/20.500.12124/6
The reason is that a call is made to the REST API:
- https://clarin.eurac.edu/repository/rest/items/undefined/versions
but the call should actually have a filled value for undefined
, like
- https://clarin.eurac.edu/repository/rest/items/9/versions
Maybe this has been fixed together with #27 in a newer version @kreetrapper?
@iiegn Do you mean issue 27 in our tracker or some other? Btw the issue is actually one step before when the javascript makes a request for rest/handle/20.500.12124/6
and for some reason this returns xml not json (so the id in the next step is undefined). When I ask directly for application/json (with curl) I get a 500 error.
@iiegn What version are you running?
@iiegn What version are you running?
We're running CLARIN-DSpace 2019.01.
@kreetrapper can you run find | grep "jersey"
in your installation dir? I think it should return only these (mind especially the version number):
./webapps/rest/WEB-INF/lib/jersey-client-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-container-servlet-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-server-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-common-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-container-servlet-core-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-hk2-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-media-moxy-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-entity-filtering-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-media-jaxb-2.27.jar
On 09/20/2019 10:42 AM, Ondřej Košarko wrote:
@kreetrapper https://github.com/kreetrapper can you run |find | grep "jersey"| in your installation dir? I think it should return only these (mind especially the version number):
|./webapps/rest/WEB-INF/lib/jersey-client-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-container-servlet-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-server-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-common-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-container-servlet-core-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-hk2-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-media-moxy-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-entity-filtering-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-media-jaxb-2.27.jar |
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ufal/clarin-dspace/issues/874?email_source=notifications&email_token=ABGOH6AEHUB7SZK5SBDKTTLQKSEFXA5CNFSM4FM2EQM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GAQNY#issuecomment-533465143, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGOH6DA7XTI7ORNF5BWW4DQKSEFXANCNFSM4FM2EQMQ.
done.
ilc4clarin running version 2019.01
./webapps/rest/WEB-INF/lib/jersey-client-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-common-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-container-servlet-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-container-servlet-core-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-entity-filtering-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-hk2-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-media-jaxb-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-media-moxy-2.27.jar ./webapps/rest/WEB-INF/lib/jersey-server-2.27.jar
riccardo
/opt/lindat-dspace/installation# find | grep "jersey"
./webapps/rest/WEB-INF/lib/jersey-container-servlet-core-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-container-servlet-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-common-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-client-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-media-moxy-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-media-jaxb-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-entity-filtering-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-hk2-2.27.jar
./webapps/rest/WEB-INF/lib/jersey-server-2.27.jar
@kreetrapper strange curl -H "Accept: application/json" https://clari/rest/handle/20.500.12124/6
now works for me, it didn't before, what changed?
the version box now works too
@kosarko We just had a random restart of the box about an hour ago. Maybe that magically fixed things?
I can confirm that the version drop down now works in Firefox and Chromium. (Magic!)
hm, this is no fun to debug... :( we do have occasional glitches within the kubernetes cluster that lead to communication interruptions between dspace and the database. but once communication is restored, dspace mostly seems to be doing ok. could this drop down (and the surrounding logic) be a case that does not self-heal after communication problems...? ...other ideas?
@iiegn If you haven't already, try going through the dspace and tomcat logs from friday. Maybe there'll be some clue to why the json marshalling was not working.
Our current hypothesis is that (within our kubernetes cluster) the OOM killer - or some k8s variant - might go around and, as a result, all sorts of strange things happen; we've seen other things that also made us wonder... We now try to cleanly restart services in such cases.
With Firefox Version 102.0 (64-bit) on linux this problem does not occur anymore. (I haven't looked into this in a while but now seems to be 'Works-for-me')