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

Fixes #30079 - workaround for ISE when search terms are used #8913

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

jjeffers
Copy link
Member

@jjeffers jjeffers commented Aug 31, 2020

This PR is a workaround, not the ultimate resolution, for an observed defect in the scoped_search gem. See this issue for details.

Once that issue is resolved, then the complete_value can be restored.

@theforeman-bot
Copy link

Issues: #30079

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, I can search without errors with this patch:

==> /var/log/foreman/production.log <==
2020-09-01T15:37:01 [I|app|4aa77fe7] Started GET "/katello/api/v2/content_views?nondefault=true&organization_id=1&page=1&paged=true&per_page=20&search=+composite+&sort_by=name&sort_order=ASC" for 127.0.0.1 at 2020-09-01 15:37:01 +0000
2020-09-01T15:37:01 [I|app|4aa77fe7] Processing by Katello::Api::V2::ContentViewsController#index as HTML
2020-09-01T15:37:01 [I|app|4aa77fe7]   Parameters: {"nondefault"=>"true", "organization_id"=>"1", "page"=>"1", "paged"=>"true", "per_page"=>"20", "search"=>" composite ", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2"}
2020-09-01T15:37:01 [I|app|4aa77fe7]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/views/katello/api/v2/content_views/index.json.rabl within katello/api/v2/layouts/collection
2020-09-01T15:37:01 [I|app|4aa77fe7]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0/app/views/katello/api/v2/content_views/index.json.rabl within katello/api/v2/layouts/collection (Duration: 3.9ms | Allocations: 3063)
2020-09-01T15:37:01 [I|app|4aa77fe7] Completed 200 OK in 19ms (Views: 6.3ms | ActiveRecord: 1.6ms | Allocations: 8932)

@chris1984
Copy link
Member

[test katello]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants