You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/06/08 19:18:00 UTC

[GitHub] incubator-ponymail issue #76: Bug: search strings not properly quoted.

GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/76

    Bug: search strings not properly quoted.

    It looks like search strings are not being properly quoted.
    
    Try searching the list
    
    https://lists.apache.org/list.html?dev@ponymail.apache.org
    
    for the subject: (without the double-quotes)
    
    "issue" - that works fine
    
    Now try
    
    "issue #" - it also returns mails without # in the subject.
    
    "# issue" - returns *all* mails.
    
    Looks like # and anything after it is not being sent to the server; perhaps it is being treated as an anchor reference.
    
    Now try
    
    "issue \#" - and one gets:
    
    ------- cut here -------
    Internal Server Error
    
    Sorry, the request hit a bit snag and errored out. The server responded with:
    
    Error!
    
    /var/www/ponymail_asf/site/api/lib/elastic.lua:31: Backend Database returned code 400!
    ------- cut here -------
    
    It looks like the Javascript code attempts to do some manipulation and escaping of the search parameters, but gets the escaping wrong. Maybe it would be better to let the browser do the escaping and handle the manipulation in the server if necessary.

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #76: Bug: search strings not properly quoted.

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the issue at:

    https://github.com/apache/incubator-ponymail/issues/76


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---