A search with a '/' character in the search query does produce an elasticsearch error even on a empty AtoM installation with freshly generated search index, slugs and nested-set (see Vagrant file).
Elasticsearch error: Elastica\Exception\ResponseException
Steps to reproduce:
1. vagrant up
2. Type *wood/tree* in the search field (no error for *wood* or *tree*)
/var/log/nginx/error.log:
2020/11/26 17:22:17 [error] 648#648: *35 FastCGI sent in stderr: "PHP message: This request has been forwarded to a 404 error page by the action "search/autocomplete"" while reading response header from upstream, client: 10.0.2.2, server: _, request: "GET /search/autocomplete?query=wood%2Ftr&repos= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.atom.sock:", host: "127.0.0.1:8000", referrer: "http://127.0.0.1:8000/"
Setup:
* AtoM version: 2.6.1
* Vagrant box: 2.6.0.2
* Vagrant version: 2.2.7
* OS: ubuntu 18.04
Vagrant file:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "artefactual/atom"
config.vm.box_version = "2.6.0.2"
config.vm.network "forwarded_port", guest: 80, host: 8000, host_ip: "127.0.0.1"
config.vm.provision "shell", inline: <<-SHELL
cd /home/vagrant/atom
git pull
git checkout v2.6.1
php symfony tools:upgrade-sql --no-confirmation
php symfony propel:generate-slugs
php symfony propel:build-nested-set
php symfony search:populate
php symfony cc
systemctl restart nginx.service
systemctl restart php7.2-fpm.service
systemctl restart elasticsearch.service
systemctl restart atom-worker.service
systemctl restart memcached.service
SHELL
end
--
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/ae9c8cb0-1e77-459a-88e6-4dc43822f4d4n%40googlegroups.com.