Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.3
-
None
-
4.03
-
Description
If base url contain a white space in front or at the end of base url, error like below will be throw
Cause: com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBaseUrl' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.IllegalStateException: Invalid base url: http://192.168.56.101:8080 at com/atlassian/applinks/ui/admin/common_header.vm[line 9, column 59] Stack Trace: [hide] com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getBaseUrl' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.IllegalStateException: Invalid base url: http://192.168.56.101:8080 at com/atlassian/applinks/ui/admin/common_header.vm[line 9, column 59] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
This bug is related to JRA-16003 which stated fixed in 3.13.3.
Step to reproduce
- Add a white space to Base Url via Administration>Global Settings>General Configuration>
- Click at Application link via Administration>System>Application Links
- Stack trace above will be throw.
Resolution
- Remove the white space
Attachments
Issue Links
- is related to
-
JRASERVER-16003 Base URL in Trusted Applications page accepts illegal characters
- Closed
- relates to
-
JRASERVER-25022 General Configuration allows invalid URL patterns for Base URL
- Closed