Islandora 7x-1.9 - Advanced search is resulting in 404 Not Found

34 views
Skip to first unread message

Kelsey

unread,
Aug 3, 2017, 11:45:37 AM8/3/17
to islandora

Hello,
Just looking for a sanity check. We just upgraded to 7x-1.9 and realized that phrases entered in advanced search are returning a 404 Not Found page. 

The query that gets entered is:


If I delete the %5C, the results show as expected. 


Does anyone know where this slash is getting entered and how I can disable it? There seems to be a new Escape Lucene Special Characters option, but this seems to occur regardless of whether that's checked or not.

Thanks!
Kelsey

Jared Whiklo

unread,
Aug 3, 2017, 12:18:00 PM8/3/17
to isla...@googlegroups.com
Hi Kelsey,

I just tried this out in a vagrant of the 7.x branch and I am not seeing
that behavior. But the slash is getting entered here [1].

The slash means that you are searching for the phrase "Test Phrase", if
you remove it then you are searching for "Test" (AND|OR) "Phrase". The
AND or OR depends on your configuration.

I couldn't access your site, to see the outcome. But I would suggest
checking the Apache access logs and see what URL Apache is 404ing on for
a start.

cheers,
jared

[1]
https://github.com/Islandora/islandora_solr_search/blob/7.x/includes/blocks.inc#L717-L719


On 2017-08-03 10:45 AM, Kelsey wrote:
>
> Hello,
> Just looking for a sanity check. We just upgraded to 7x-1.9 and realized
> that phrases entered in advanced search are returning a 404 Not Found page.
>
> The query that gets entered is:
>
> islandora/search/dc.title%3A%28Test%5C%20Phrase%29
> <https://aimtc2.nuwc.navy.mil/stlibrary/islandora/search/dc.title%3A%28Test%5C%20Phrase%29>
>
> If I delete the %5C, the results show as expected.
>
> islandora/search/dc.title%3A%28Test%20Phrase%29
> <https://aimtc2.nuwc.navy.mil/stlibrary/islandora/search/dc.title%3A%28Test%20Phrase%29>
>
> Does anyone know where this slash is getting entered and how I can
> disable it? There seems to be a new Escape Lucene Special Characters
> option, but this seems to occur regardless of whether that's checked or not.
>
> Thanks!
> Kelsey
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/63ce42ac-a4e8-4ab9-8793-8ad498ecf3b3%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/63ce42ac-a4e8-4ab9-8793-8ad498ecf3b3%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
If there was any logic in this world, it would be men who ride
side-saddle, not women.

signature.asc

Nathan Howard

unread,
Jun 25, 2018, 3:11:04 PM6/25/18
to islandora
Hi Jared,

Sorry to dredge up an old post but we are experiencing the same issue. When a search term is searched in the Advanced Search form a slash is appended to the search generating a 404. When we delete the slash, results are returned. Any idea how to get rid of this?

Thanks,
Nathan

Jared Whiklo

unread,
Jun 26, 2018, 10:52:26 AM6/26/18
to isla...@googlegroups.com
Hey Nathan,

When you say a slash is appended to the end you mean you are getting

islandora/search/dc.title%3A%28Test%5C%20Phrase%29/

and if you remove the trailing '/' then it works fine?

cheers,
jared
> > an email to islandora+...@googlegroups.com <javascript:>
> > <mailto:islandora+...@googlegroups.com <javascript:>>.
> <https://groups.google.com/group/islandora>.
> <https://groups.google.com/d/msgid/islandora/63ce42ac-a4e8-4ab9-8793-8ad498ecf3b3%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
> --
> Jared Whiklo
> jwh...@gmail.com <javascript:>
> --------------------------------------------------
> If there was any logic in this world, it would be men who ride
> side-saddle, not women.
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
Not one shred of evidence supports the notion that life is serious.

signature.asc

Nathan Howard

unread,
Jun 26, 2018, 10:57:37 AM6/26/18
to islandora
Hi Jared,

Thanks for the response! It actually looks like this:


It strange because none of the other sub sites have this issue, only this site. It looks to be a slash and a space.

If you wanted to take a look the site is here:


Thanks!
Nathan

Jared Whiklo

unread,
Jun 26, 2018, 11:05:48 AM6/26/18
to isla...@googlegroups.com
Hi Nathan,

For some reason your query is getting a space inserted, which is what
the backslash is escaping.

What version of the Islandora Solr Search module as you using (or what
commit if you are not on a specific version).

Do you have any modules/code that adjusts the solr query in any way?

Is this due to a recent update? Was it working fine, then you changed
something (seemingly unrelated) and it stopped working?

cheers,
jared
> https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> Jared Whiklo
> jwh...@gmail.com <javascript:>
> --------------------------------------------------
> Not one shred of evidence supports the notion that life is serious.
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
For every action, there is an equal and opposite government program.

signature.asc

Nathan Howard

unread,
Jun 26, 2018, 11:20:04 AM6/26/18
to islandora
Hi Jared,

We are on 7.x:

As far as I can tell this has been happening to this site for a least a month now but the strange thing is the other sub sites work fine but they all share the same module.I suppose someone on the Seneca College end could have enabled a module that has edited the query but so far I haven't been able to track anything down.

Could this have anything to do with a solr config somewhere? Like schema.xml?

Thanks,
Nathan

Jared Whiklo

unread,
Jun 26, 2018, 11:52:00 AM6/26/18
to isla...@googlegroups.com
Hey Nathan,

Probably not caused by your Solr config, but anything is possible.

If in a multi-site environment only one is misbehaving it is usually
another module interfering or perhaps the theme code changing something.

Not sure what to suggest. I would try adding a dsm() statement here[1]
to make sure that the field name is correct after encoding.

cheers,
jared


[1]
https://github.com/Islandora/islandora_solr_search/blob/7.x/includes/blocks.inc#L756
> https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com
> https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> Jared Whiklo
> jwh...@gmail.com <javascript:>
> --------------------------------------------------
> For every action, there is an equal and opposite government program.
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/8126e030-06a3-4dd3-a977-82570f277507%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/8126e030-06a3-4dd3-a977-82570f277507%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
Age is a very high price to pay for maturity.

signature.asc

Nathan Howard

unread,
Jun 26, 2018, 11:53:12 AM6/26/18
to islandora
Hi Jared,

It looks like it was the catch_all_fields field in the Advanced Search block. I removed and readded and it's working now.

Thanks for your help.
Nathan

Jared Whiklo

unread,
Jun 26, 2018, 12:28:53 PM6/26/18
to isla...@googlegroups.com
Good to hear, I wondered if there was a space stuck in there but I
couldn't think of how it would get in there. Good work!

cheers,
jared

On 2018-06-26 10:53 AM, Nathan Howard wrote:
> Hi Jared,
>
> https://groups.google.com/d/msgid/islandora/c5132def-8331-4060-97a2-aba0a90b8271%40googlegroups.com
> > Visit this group at https://groups.google.com/group/islandora
> <https://groups.google.com/group/islandora>.
> > To view this discussion on the web visit
> >
> <https://groups.google.com/d/msgid/islandora/fd881a2c-773a-4431-9db4-0b2cd80bb8ca%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> --------------------------------------------------
> For every action, there is an equal and opposite government
> program.
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/cd59ccb3-b4ae-4cfc-84b6-70ad33da034d%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/cd59ccb3-b4ae-4cfc-84b6-70ad33da034d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
People will believe anything if you whisper it.

signature.asc
Reply all
Reply to author
Forward
0 new messages