|
Alan Berg made changes - 09-Mar-2010 08:42
Eli Cochran made changes - 16-Mar-2010 08:31
Alan Berg made changes - 16-Mar-2010 09:03
Anthony Whyte made changes - 22-Mar-2010 17:53
Matthew Jones made changes - 26-Mar-2010 11:08
There is actually a comment in the code, so this is a known issue and expected issue. It does *kind* of make sense as the drop down box is as big as one of the tabs, but might be confusing to the user.
126 // Note that if there are exactly one more site 127 // than tabs allowed - simply put the site on 128 // instead of a dropdown with one site https://source.sakaiproject.org/svn/portal/trunk/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/DefaultSiteViewImpl.java I will attach a patch that fixes the other noted issues with the bounds checking.
Matthew Jones made changes - 01-Apr-2010 07:36
Matthew Jones made changes - 12-Apr-2010 07:40
Anthony Whyte made changes - 29-Jun-2010 16:52
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
And large minus numbers produce the following stack trace
org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
caused by: org.apache.jasper.JasperException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
caused by: javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
caused by: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "-999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at com.sun.faces.el.impl.Coercions.coerceToPrimitiveNumber(Coercions.java:446)
at com.sun.faces.el.impl.Coercions.applyArithmeticOperator(Coercions.java:805)
at com.sun.faces.el.impl.ArithmeticOperator.apply(ArithmeticOperator.java:84)
at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:179)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UIParameter.getValue(UIParameter.java:129)
at com.sun.faces.renderkit.html_basic.OutputMessageRenderer.encodeEnd(OutputMessageRenderer.java:143)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at javax.faces.webapp
And high numbers still
org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
caused by: org.apache.jasper.JasperException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
caused by: javax.faces.el.EvaluationException: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
caused by: com.sun.faces.el.impl.ElException: An exception occured trying to convert String "99999999999999999999999999999999999999999999999999999999999999" to type "java.lang.Long"
at com.sun.faces.el.impl.Coercions.coerceToPrimitiveNumber(Coercions.java:446)
at com.sun.faces.el.impl.Coercions.applyArithmeticOperator(Coercions.java:805)
at com.sun.faces.el.impl.ArithmeticOperator.apply(ArithmeticOperator.java:84)
at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:179)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UIParameter.getValue(UIParameter.java:129)
at com.sun.faces.renderkit.html_basic.OutputMessageRenderer.encodeEnd(OutputMessageRenderer.java:143)