-
Notifications
You must be signed in to change notification settings - Fork 21
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
Search gives 500 Internal Error with ArgumentError from search_controller.rb #57
Comments
Searching has always been a problem for me. It works really weird in Redmine. When I was active on this project trying to fix this was a low priority. I no longer actively work on this instead relying on pull requests. As a contributing member of a local ruby group and mentor to others learning ruby, I'd highly recommend using this as a learner's project or motivation to keep learning ruby! I would be happy to chat about it and maybe get you contributing a pull request or start of one. More for your experience and credit than anything else. For now I'll log this as a bug to take a look at if I do end up looking into this project again. |
Looking at the error I'm guessing that the |
Thanks for the guidance. A further investigation looking at Line 83 seems to hint (as referenced above) that the Could this be the source of a mis-matched ordering? Or perhaps something even deeper, since the lack of search functionality appears to work for some search words but not others? Any other thoughts? |
This is very possible. A bit of research shows that in an ActiveRecord model Would you be willing to test this? Can you offer a Pull Request? |
In thinking I wrote this back in the day when I had no idea how to write rails let alone ruby so I'm sure there are a lot of opps going on. I would never recommend this code be a good example. |
Hi Devin, I'll play around and see what I can do when I have some free time, but unfortunately (as you can see by how long it took for me to get back to this), it may be some time before I get a chance to dig back into things. Thanks for your feedback and offer to help. Timothy H. Chung, Ph.D. On 1/2/14 7:15 AM, "Devin Weaver" <notifications@github.commailto:notifications@github.com> wrote: This is very possible. A bit of research shows that in an ActiveRecord model created_at is a datetime stamp and created_on is just a date stamp. However, I believe the internal database column name is created_at. If a sort is trying to reference a database column name and not the rails model then it needs to match the column name (created_at) as far as I know. Would you be willing to test this? Can you offer a Pull Request? — |
When entering search in the Redmine search box (under "All Projects" or while leaving the default "Jump to a project..." in the dropdown box), occasionally will get the Redmine 500 error.
However, it isn't consistent, and seems to fail (repeatably) on certain words/phrases. For example, search for "Ground Robots" correctly returns a number of valid entries, but search for "Ground Robot" returns the 500 error and the following production.log message:
Other search queries seem to elicit variations on this error, namely
or
All three variations reference Line 83 in /app/controllers/search_controller.rb, but I'm new to Ruby/Rails and don't know why there's an error here.
With a large inventory list, having this robust (or at least reliable) search capability is a must! Thanks in advance!
The text was updated successfully, but these errors were encountered: