Item8079: Drawing name with spaces not editable.

Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: JHotDrawPlugin
Branches:
Reported By: Foswiki:Main.EliotBlennerhassett
Waiting For: Main.KennethLavrsen
Last Change By: KennethLavrsen
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

ItemTemplate edit

Summary Drawing name with spaces not editable.
ReportedBy Foswiki:Main.EliotBlennerhassett
Codebase 1.0.4
SVN Range SVN 3214: Foswiki-1.1.0-dev, Tue, 17 Mar 2009, build 3142
AppliesTo Extension
Component JHotDrawPlugin
Priority Normal
CurrentState Closed
WaitingFor KennethLavrsen
Checkins JHotDrawPlugin:f3d7b6e2bd56
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 16 Jun 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License