Item8079: Drawing name with spaces not editable.

Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: JHotDrawPlugin
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
Topic revision: r3 - 16 Jun 2009, KennethLavrsen - This page was cached on 25 Feb 2018 - 12:56.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License