{"action":"created","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/8557","labels_url":"https://api.github.com/repos/dotCMS/core/issues/8557/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/8557/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/8557/events","html_url":"https://github.com/dotCMS/core/issues/8557","id":130695563,"number":8557,"title":"?language_id in url and immediate 500. In any server","user":{"login":"monzonj","id":986520,"avatar_url":"https://avatars.githubusercontent.com/u/986520?v=3","gravatar_id":"","url":"https://api.github.com/users/monzonj","html_url":"https://github.com/monzonj","followers_url":"https://api.github.com/users/monzonj/followers","following_url":"https://api.github.com/users/monzonj/following{/other_user}","gists_url":"https://api.github.com/users/monzonj/gists{/gist_id}","starred_url":"https://api.github.com/users/monzonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monzonj/subscriptions","organizations_url":"https://api.github.com/users/monzonj/orgs","repos_url":"https://api.github.com/users/monzonj/repos","events_url":"https://api.github.com/users/monzonj/events{/privacy}","received_events_url":"https://api.github.com/users/monzonj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T14:19:05Z","updated_at":"2016-02-02T14:25:14Z","closed_at":"2016-02-02T14:25:14Z","body":"http://demo.dotcms.com/?language_id=1/0\r\n\r\nerror 500. Division by 0. Should be correctly catch. It's ok to log it (I wouldn't log it with a full stacktrace, but ok) but a 500 error page?? that's too bad.\r\n\r\n\r\n```\r\n2016-02-02 15:11:03,689 ERROR com.dotmarketing.portlets.languagesmanager.business.LanguageFactoryImpl - getLanguage failed passed id is not numeric. Value from parameter: 4/en\r\njava.lang.NumberFormatException: For input string: \"4/en\"\r\n        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\r\n        at java.lang.Long.parseLong(Long.java:589)\r\n        at java.lang.Long.parseLong(Long.java:631)\r\n        at com.dotmarketing.portlets.languagesmanager.business.LanguageFactoryImpl.getLanguage(LanguageFactoryImpl.java:93)\r\n        at com.dotmarketing.portlets.languagesmanager.business.LanguageAPIImpl.getLanguage(LanguageAPIImpl.java:46)\r\n        at com.dotmarketing.business.web.LanguageWebAPIImpl.checkSessionLoc\r\nale(LanguageWebAPIImpl.java:59)\r\n        at com.dotmarketing.business.web.LanguageWebAPIImpl.getLanguage(LanguageWebAPIImpl.java:119)\r\n        at com.dotmarketing.filters.ThreadNameFilter.doFilter(ThreadNameFilter.java:59)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at com.dotmarketing.filters.CookiesFilter.doFilter(CookiesFilter.java:33)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:146)\r\n        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)\r\n        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)\r\n        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)\r\n        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)\r\n        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)\r\n        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)\r\n        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)\r\n        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)\r\n        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n        at java.lang.Thread.run(Thread.java:745)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dotCMS/core/issues/comments/178597525","html_url":"https://github.com/dotCMS/core/issues/8557#issuecomment-178597525","issue_url":"https://api.github.com/repos/dotCMS/core/issues/8557","id":178597525,"user":{"login":"dsilvam","id":1576794,"avatar_url":"https://avatars.githubusercontent.com/u/1576794?v=3","gravatar_id":"","url":"https://api.github.com/users/dsilvam","html_url":"https://github.com/dsilvam","followers_url":"https://api.github.com/users/dsilvam/followers","following_url":"https://api.github.com/users/dsilvam/following{/other_user}","gists_url":"https://api.github.com/users/dsilvam/gists{/gist_id}","starred_url":"https://api.github.com/users/dsilvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsilvam/subscriptions","organizations_url":"https://api.github.com/users/dsilvam/orgs","repos_url":"https://api.github.com/users/dsilvam/repos","events_url":"https://api.github.com/users/dsilvam/events{/privacy}","received_events_url":"https://api.github.com/users/dsilvam/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T14:25:14Z","updated_at":"2016-02-02T14:25:14Z","body":"Duplicate of https://github.com/dotCMS/core/issues/8388.\r\nHotfixed for 3.2.4 "}}