Getting an error in creating remote link in Jira as :An error occurred whilst rendering this message?

Kavita Gupta November 18, 2013

When firing URL http://localhost:8060/rest/api/latest/issue/SR-1/remotelink I am sending the following json:

{

"globalId":"http://localhost:8080/flex/MainApp.html?schid\u003d1",

"application":{

"type":"com.thed.abc",

"name":"Abc testcase"

},

"relationship":"Abc testcase",

"object":{

"url":"http://localhost:8080/flex/MainApp.html?tcid\u003d3",

"title":"3",

"summary":"Untitled (Sample Project/Release 1.0/c1/p1)",

"status":{

"resolved":false,

"icon":{

"url16x16":"http://abc.net/includes/icons/status1.png",

"title":"Pass",

"link":"http://localhost:8080/flex/MainApp.html?schid\u003d1"

}

}

}

}

I am able to create Issue link in Jira, but Jira is not able to render tha image given in icon tag url16x16":"http://abc.net/includes/icons/status1.png. Following stack trace occurs:

ERROR admin 696x2541x1 pb0jhw 0:0:0:0:0:0:0:1 /browse/SR-1 [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: com.google.template.soy.tofu.SoyTofuException: In template JIRA.Template.Util.Issue.Status.iconStatus: In 'print' tag, expression "$name" evaluates to undefined.

com.google.template.soy.tofu.SoyTofuException: In template JIRA.Template.Util.Issue.Status.iconStatus: In 'print' tag, expression "$name" evaluates to undefined.

at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)

at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)

at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)

at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)

at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:111)

at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:40)

at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:33)

at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:26)

at sun.reflect.GeneratedMethodAccessor393.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:381)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:370)

at com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxingMethod.invoke(AnnotationBoxingMethod.java:26)

at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30)

at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)

at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)

....................

3 answers

0 votes
Kavita Gupta July 27, 2014

Fixed in version 6.3.1, Thanks!

0 votes
Mauro Badii
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2014

It is actually related to the icon link as covered on this issue: https://jira.atlassian.com/browse/JRA-37554

This is fixed on version 6.3.1

Cheers!

0 votes
Kavita Gupta November 18, 2013

Similar issue was raised in https://jira.atlassian.com/browse/JRA-35156

Suggest an answer

Log in or Sign up to answer