{"action":"created","issue":{"url":"https://api.github.com/repos/osclass/Osclass/issues/1797","repository_url":"https://api.github.com/repos/osclass/Osclass","labels_url":"https://api.github.com/repos/osclass/Osclass/issues/1797/labels{/name}","comments_url":"https://api.github.com/repos/osclass/Osclass/issues/1797/comments","events_url":"https://api.github.com/repos/osclass/Osclass/issues/1797/events","html_url":"https://github.com/osclass/Osclass/issues/1797","id":53860278,"number":1797,"title":"slash \"/\" in search word pattern breaks URLs on Apache (server response 404)","user":{"login":"dev-101","id":5383059,"avatar_url":"https://avatars.githubusercontent.com/u/5383059?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-101","html_url":"https://github.com/dev-101","followers_url":"https://api.github.com/users/dev-101/followers","following_url":"https://api.github.com/users/dev-101/following{/other_user}","gists_url":"https://api.github.com/users/dev-101/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-101/subscriptions","organizations_url":"https://api.github.com/users/dev-101/orgs","repos_url":"https://api.github.com/users/dev-101/repos","events_url":"https://api.github.com/users/dev-101/events{/privacy}","received_events_url":"https://api.github.com/users/dev-101/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-01-09T11:50:21Z","updated_at":"2016-09-17T11:53:13Z","closed_at":"2015-01-16T11:12:34Z","body":"For example: if we search for a word `/test` or `test/` it will result in Apache server 404 error response. This problem is well-known under Apache with various solutions available.\r\n\r\nBackslash is not an issue, since all special chars values are sanitized from the item title URLs, and do not affect the search. But, what if a slash is part of the word, for example: AC/DC ?\r\n\r\nhttp://stackoverflow.com/questions/3235219/urlencoded-forward-slash-is-breaking-url\r\nhttp://www.leakon.com/archives/865 (different solution ideas)\r\nhttp://stackoverflow.com/questions/4390436/need-to-allow-encoded-slashes-on-apache (about apache slash directive)\r\n\r\nforum topic:\r\nhttp://forums.osclass.org/3-5-x/error-404-when-inputting-words-with-slashes/\r\n\r\n-----\r\n\r\nI have quickly done tests with 2 variations on apache AllowEncodedSlashes directive, on VPS it had no effect (no apache config errors in logs, and 404 still there).\r\n\r\nOn local server with setting set either to On or NoDecode: no more 404s were present with words containing slash, but pattern parameter was empty and completely ignored; without a pattern all items were returned from search."},"comment":{"url":"https://api.github.com/repos/osclass/Osclass/issues/comments/247765328","html_url":"https://github.com/osclass/Osclass/issues/1797#issuecomment-247765328","issue_url":"https://api.github.com/repos/osclass/Osclass/issues/1797","id":247765328,"user":{"login":"dev-101","id":5383059,"avatar_url":"https://avatars.githubusercontent.com/u/5383059?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-101","html_url":"https://github.com/dev-101","followers_url":"https://api.github.com/users/dev-101/followers","following_url":"https://api.github.com/users/dev-101/following{/other_user}","gists_url":"https://api.github.com/users/dev-101/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-101/subscriptions","organizations_url":"https://api.github.com/users/dev-101/orgs","repos_url":"https://api.github.com/users/dev-101/repos","events_url":"https://api.github.com/users/dev-101/events{/privacy}","received_events_url":"https://api.github.com/users/dev-101/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T11:53:13Z","updated_at":"2016-09-17T11:53:13Z","body":"I know this issue is closed, but I have to get back to it again.\r\nDaniel, if you be so kind to re-open it for the time being, so we don't get lost track of it.\r\n\r\nThe reason for reopening this issue is that I have setup WordPress on the same system/server environments (both older and newer Apache/PHP versions), and in WordPress this issue does not exist (e.g. search functions quite normal, with permalinks enabled).\r\n\r\nexample:\r\n\r\n>wordpress . site/?s=test+%2F\r\n\r\nreturns proper search results.\r\n\r\nhowever, in Osclass server/apache generic 404 error page is returned:\r\n\r\n>Not Found\r\n>The requested URL /search/pattern,test+/ was not found on this server.\r\n\r\nThis clearly indicates that the problem could be in fact related to Osclass, because in WP works just fine.\r\n\r\n---\r\n\r\nAgain, problem could be as well related to \"&\" character issue #1921."}}
{"actor":{"display_login":"dev-101"}}