Issue Details (XML | Word | Printable)

Key: BAM-308
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Chaimungkalanont [Atlassian]
Reporter: Greg Luck
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Bamboo

Edit Builder Configuration causes error in .5

Created: 11/Oct/06 10:59 PM   Updated: 23/Nov/06 04:44 PM
Component/s: None
Affects Version/s: 0.5
Fix Version/s: 0.6

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 2 hours
Remaining Estimate - 2 hours
Time Spent: Not Specified
Remaining Estimate - 2 hours

Issue Links:
Duplicate

Participants: Greg Luck and Mark Chaimungkalanont [Atlassian]
Since last comment: 2 years, 12 weeks, 5 days ago
Number of comments: 2
Internal Priority: 1. Highest
Labels:


 Description  « Hide
This happens when I click on the Edit button on Builder Configuration.
java.io.FileNotFoundException: Template templates/plugins/builder/antBuilderedit.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:488) at freemarker.template.Configuration.getTemplate(Configuration.java:458) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:88) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:115) at com.atlassian.bamboo.builder.AbstractBuilder.getFreemarkerEditHtml(AbstractBuilder.java:144) at com.atlassian.bamboo.ww2.actions.build.admin.ConfigureBuildBuilder.getEditHtml(ConfigureBuildBuilder.java:183) 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:585) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:616) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environmen

I upgraded from .4 to .5. Not sure if it happens for new users on .5



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Greg Luck added a comment - 12/Oct/06 07:38 PM
Hi

I figured out why this is happening.

The webapp/templates/plugins/builder/antBuilderedit.ftl should be webapp/templates/plugins/builder/antBuilderEdit.ftl.

You have a case error in the file name.

This is one of the few problems when developing on Mac OS X. It is case preserving case insensitive, whereas other Unices are case preserving case sensitive.

I am working around the issue with a symlink


Mark Chaimungkalanont [Atlassian] added a comment - 12/Oct/06 10:04 PM
Greg,

Thanks for pointing this out, this will be fixed in the next release.

I think you'd be fine since you already have a workaround but you can also edit the file

WEB-INF/classes/system-builder-plugin.xml

and change line 13:

    <resource type="freemarker" name="edit" location="templates/plugins/builder/antBuilderedit.ftl"/>

to use the correct case and then restart your server

Cheers,

Mark C