Item8079: Drawing name with spaces not editable.
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Creating a drawing with a name that has spaces in it e.g.
%DRAWING{"My Drawing"}%
allows the initial drawing to be edited and saved, but the resulting gif is not displayed, and if an attempt is made to edit the drawing a second time, the applet cannot open the files.
This is caused by the name having a space in it.
The filenames
are sanitised when saved "My_Drawing.gif", (and can be displayed with attachurl).
But the DRAWING macro is still trying to use "My Drawing.gif" etc. for editing and display.
Changing %DRAWING{"My Drawing"}% to %DRAWING{"My_Drawing"}% results in correct display and editability.
I think there is some path where the sanitised version of the name is not being used.
--
EliotBlennerhassett - 20 Mar 2009
Hello Kenneth - can you shed any light on this one? Thanks.
--
EliotBlennerhassett - 11 Jun 2009
It was a simple coding error in the plugin.
I have uploaded a new version.
The plugin uses the standard rules for attachment filenames which includes converting spaces to _.
Problem was that the plugin had a coding error so the converted filename was not used internally in the plugin.
--
KennethLavrsen - 16 Jun 2009