Hi,
The National Library of Sweden have had several problems since we upgraded to version 2.7.1 of Access to Memory. The problems seem to be the same for all the archival descriptions in the system and for all users.
1. The search functionality doesn’t allow certain characters which results in an ElasticSearch error, ”Elasticsearch error: Elastica\Exception\ResponseException”. This error seems to be present on https://demo.accesstomemory.org/ as well. It seems certain characters aren’t escaped properly.
2. Any metadata is lost on a certain level of description in an archival description if you enter Edit mode and then press Cancel instead of Save. The data isn’t regenerated if you repopulate the search index (php symfony search:populate), and seems to be missing in the database as well.
3. When you enter Edit mode on any level of description where the tree view also contains other descriptions on the same level and then press Save, the level you are editing automatically moves down to the bottom of the structure. Sometimes it seems to “move back” to the original position in the tree view after a while but we have not come across it enough to know whether it goes back every time. Maybe repopulating the search index (php symfony search:populate) is the cause of it moving back to the original position.
Any ideas what could be causing these issues, and how we can proceed in resolving them?
We are running the following versions:
- Access to Memory 2.7.1 (upgraded from 2.6.3 I believe)
- nginx 1.23.3
- PHP 7.4.30
- ElasticSearch 5.6.16
- MySQL 8.0.30
Best regards,
Jimmy Thelander
National Library of Sweden
1. The search functionality doesn’t allow certain characters which results in an ElasticSearch error, ”Elasticsearch error: Elastica\Exception\ResponseException”. This error seems to be present on https://demo.accesstomemory.org/ as well. It seems certain characters aren’t escaped properly.
If you need to use any of the characters which function as operators in your query itself (and not as operators), then you should escape them with a leading backslash. For instance, to search for (1+1)=2, you would need to write your query as \(1\+1\)\=2.
The reserved characters are: + - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /
Failing to escape these special characters correctly could lead to a syntax error which prevents your query from running.
< and > can’t be escaped at all. The only way to prevent them from attempting to create a range query is to remove them from the query string entirely.
2. Any metadata is lost on a certain level of description in an archival description if you enter Edit mode and then press Cancel instead of Save. The data isn’t regenerated if you repopulate the search index (php symfony search:populate), and seems to be missing in the database as well.
3. When you enter Edit mode on any level of description where the tree view also contains other descriptions on the same level and then press Save, the level you are editing automatically moves down to the bottom of the structure. Sometimes it seems to “move back” to the original position in the tree view after a while but we have not come across it enough to know whether it goes back every time. Maybe repopulating the search index (php symfony search:populate) is the cause of it moving back to the original position.
--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/8b309b76-4661-4f15-afce-8b9ab19b214bn%40googlegroups.com.
2. I've been able to reproduce it by simply doing it over and over and over. Clicking the item in the tree view, clicking Edit, clicking Cancel, and repeat. It'll happen like 1 out of 30 times or similar (just an estimate) on our installation. I haven't been able to find anything in the logs regarding this either. Any idea where I could be investigating further?
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/feb830c2-c975-497a-8ecf-82e52b2bc7e6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/4d354c9b-c200-4b60-9fea-6977483aa1adn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/c0c02e8e-3b8b-4426-9b74-13a68304ef6dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1998316f-da89-481e-ab35-f880870249f0n%40googlegroups.com.