Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-24201

Invocation of method 'getBaseUrl' when navigate to Application links

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.4
    • 4.3
    • None

    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

      1. Add a white space to Base Url via Administration>Global Settings>General Configuration>
      2. Click at Application link via Administration>System>Application Links
      3. Stack trace above will be throw.

      Resolution

      1. Remove the white space

      Attachments

        Issue Links

          Activity

            People

              hgiddens Hugh Giddens (Inactive)
              vkgan Gan VoonKiat
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: