Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pitt: 414 error causing redirect with "Sorry, I don't understand your search." #1051

Open
3 tasks
bkiahstroud opened this issue Aug 27, 2024 · 0 comments
Open
3 tasks
Assignees
Labels
bug Something isn't working maintenance bills to maintenance

Comments

@bkiahstroud
Copy link
Contributor

bkiahstroud commented Aug 27, 2024

Ref:

Story

A RSolr::Error::Http - 414 Request-URI Too Long error is causing users logged into the pittir tenant to be redirected to the tenant's landing page with the flash message Sorry, I don't understand your search.

Trace
D, [2024-08-27T17:50:53.830589 #1] DEBUG -- : [aef3333e58ccd7c1a9c6e917f6c7c539]    (14.3ms)  SELECT DISTINCT "source_id" FROM "permission_template_accesses" INNER JOIN "p
ermission_templates" ON "permission_templates"."id" = "permission_template_accesses"."permission_template_id" WHERE "permission_template_accesses"."access" IN ($1, $2) AND
 ("permission_template_accesses"."agent_type" = $3 AND "permission_template_accesses"."agent_id" = $4 OR "permission_template_accesses"."agent_type" = $5 AND "permission_t
emplate_accesses"."agent_id" IN ($6, $7, $8))  [["access", "manage"], ["access", "deposit"], ["agent_type", "user"], ["agent_id", "[email protected]"], ["agent_type", "gr
oup"], ["agent_id", "public"], ["agent_id", "registered"], ["agent_id", "admin"]]
D, [2024-08-27T17:50:53.892566 #1] DEBUG -- : [aef3333e58ccd7c1a9c6e917f6c7c539] Solr parameters: {"facet.field"=>["visibility_ssi", "suppressed_bsi", "resource_type_sim",
 "has_model_ssim"], "facet.query"=>[], "facet.pivot"=>["has_model_ssim,collection_type_gid_ssim"], "fq"=>["{!terms f=id}82ab5232-40de-455a-b412-293701686a94,580821a1-a9e1-
4e9c-9ba4-6df9df59f8e5,05d6838b-a3d6-4c94-8862-b71eab23f23a,a21e1e2c-2a43-4263-b103-be6064c4e7fd,69aca7c7-ca97-4dfb-8d62-e0350099f608,73bfe74b-645b-4346-94e1-6680b8043224,
d6560769-b02b-4b5d-b746-53a85f1237b7,567a20ed-e1e2-4e21-a380-43a4f4f0e16e,9ae37fdf-e824-4879-9c4a-4f73f2f66292,7bb8faf0-dbcb-4d76-8604-58cd71165d83,6451ce75-a1f7-498f-9283
...many more UUIDs listed...
I, [2024-08-27T17:50:53.997283 #1]  INFO -- : [aef3333e58ccd7c1a9c6e917f6c7c539]   Rendered hyrax/dashboard/collections/_collection_title.html.erb (183.1ms)
I, [2024-08-27T17:50:54.006506 #1]  INFO -- : [aef3333e58ccd7c1a9c6e917f6c7c539]   Rendered /usr/local/bundle/bundler/gems/hyrax-285982850cd9/app/views/hyrax/dashboard/col
lections/show.html.erb within layouts/hyrax/dashboard (193.2ms)
E, [2024-08-27T17:50:54.006840 #1] ERROR -- : [aef3333e58ccd7c1a9c6e917f6c7c539] RSolr::Error::Http - 414 Request-URI Too Long
I, [2024-08-27T17:50:54.007240 #1]  INFO -- : [aef3333e58ccd7c1a9c6e917f6c7c539] Redirected to https://pittir.hykucommons.org/?locale=en
I, [2024-08-27T17:50:54.007442 #1]  INFO -- : [aef3333e58ccd7c1a9c6e917f6c7c539] Completed 302 Found in 471ms (ActiveRecord: 46.5ms)

Additional context

https://assaydepot.slack.com/archives/C0313NKC08L/p1724693163100939

the pitt.hykucommons.org tenant produces an error when any logged in user attempts to access the Works dashboard, the Collections dashboard (or the All tab of the Collections dashboard if that user hasn't created any collections), or certain Collection pages. The error reads, "I'm sorry, I don't understand that search."

The error may be related to an import performed today that added a number of collections, some of which have the > character in the title. One such example that produces an error for logged in users is https://pittir.hykucommons.org/collections/43598e51-8dad-4591-888e-5bc011f1726a?q=bioengineering

This is a total stopper for work in the Pitt repo, and should be top priority now

Acceptance Criteria

@bkiahstroud bkiahstroud self-assigned this Aug 27, 2024
@bkiahstroud bkiahstroud added bug Something isn't working maintenance bills to maintenance labels Aug 27, 2024
@bkiahstroud bkiahstroud moved this to Ready for Development in palni-palci Aug 27, 2024
@bkiahstroud bkiahstroud moved this from Ready for Development to In Development in palni-palci Aug 27, 2024
@bkiahstroud bkiahstroud moved this from In Development to Code Review in palni-palci Aug 28, 2024
@bkiahstroud bkiahstroud moved this from Code Review to Deploy to Staging in palni-palci Aug 29, 2024
@bkiahstroud bkiahstroud moved this from Deploy to Staging to SoftServ QA in palni-palci Aug 29, 2024
@bkiahstroud bkiahstroud moved this from SoftServ QA to Deploy to Production in palni-palci Aug 29, 2024
@bkiahstroud bkiahstroud moved this from Deploy to Production to Client Verification in palni-palci Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance bills to maintenance
Projects
Status: Client Verification
Development

No branches or pull requests

1 participant