U4-419 - saving a script file in subfolder fails in 4.7.1 (not in 4.7.0)

Created by Sebastiaan Janssen 19 Aug 2012, 14:52:42 Updated by Sebastiaan Janssen 31 Aug 2012, 13:04:20

Subtask of: U4-136

Dev section - create new scripting file - name it folder/file1 , click create , add some content in the script editor and click save.

In 4.7.1 the slash gets changed to backslash (folder\file1) and on save I get an error message"Scripting file could not be saved". Changing back to slash does not help.

In 4.7.0 the slash is intact (folder/file1). And saving works fine.

''Originally created on CodePlex by [prgjonas|http://www.codeplex.com/site/users/view/prgjonas]'' on 8/19/2011 6:07:31 PM [Codeplex ID: 30422 - Codeplex Votes: 5]

Imported comments

''Comment by [esunxray|http://www.codeplex.com/site/users/view/esunxray] on 8/20/2011 2:49:20 AM:'' I have met this bug.

''Comment by [esunxray|http://www.codeplex.com/site/users/view/esunxray] on 8/20/2011 7:11:04 AM:'' I can assure you that this is a bug.

''Comment by [esunxray|http://www.codeplex.com/site/users/view/esunxray] on 8/22/2011 3:00:29 AM:'' win2008 r2, ms sql 2005 with sp4 Can't save a black razor script file into a sub folder.

''Comment by [vnbaaij|http://www.codeplex.com/site/users/view/vnbaaij] on 10/31/2011 11:16:19 PM:'' Proposed fix: Change line 80 in umbraco\presentation\umbraco\developer\Python\editPython.aspx.cs from pythonFileName.Text = file.Replace(IOHelper.MapPath(SystemDirectories.MacroScripts), "").Substring(1); to pythonFileName.Text = Request.QueryString["file"];

All manipulation of filename/path is needed for checking and opening of the scripting file, but not for displaying the name

''Comment by [MaverickUK|http://www.codeplex.com/site/users/view/MaverickUK] on 4/11/2012 3:58:47 PM:'' I'm surprised this bug is still here over six months after originally being reporting - disapointing

Comments

Sebastiaan Janssen 31 Aug 2012, 13:04:20

Fixed in changeset 576248ec9b17


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Easy

Category:

Backwards Compatible: True

Fix Submitted: Inline code

Affected versions: 4.8.0, 4.9.0

Due in version: 4.9.0

Sprint:

Story Points:

Cycle: