Closed Bug 89986 Opened 23 years ago Closed 20 years ago

problems with adding or renaming a local folder named "a/b", console error and rename dialog doesn't go away

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 140212

People

(Reporter: sspitzer, Assigned: cavin)

References

(Blocks 1 open bug)

Details

I'm unable to add a new local folder named "a/b", console error and the new
folder dialog doesn't go away.

I can rename an existing local folder to "a/b" but it doesn't really work.
the UI shows "a/b", but on disk it is still the old folder name.

on restart, it is back to the old folder name.

here's the error I get on the console when I try to add "a/b"

JavaScript error: 
 line 0: uncaught exception: [Exception... "Component returned failure code:
0x8055000c [nsIRDFCompositeDataSource.DoCommand]"  nsresult: "0x8055000c
(<unknown>)"  location: "JS frame :: chrome://messenger/content/mailCommands.js
:: DoRDFCommand :: line 50"  data: no]


cavin and I have a theory involving uri parsing.

escape("a/b") is still "a/b"

so our uri for "a/b" is mailbox://user@host/a/b and that probably fails
somewhere when parsing.

"/" should be part of the illegal characters (on all platforms) in
NS_MsgHashIfNecessary().  So when we see "a/b", we should be hashing that to
some other value and storing the pretty name in the folder cache.

see cavin's fix for 41944.

we should investigate this bug after 41944
marking 4xp because 4.x windows allowed "a/b"

4.x linux didn't, but it behaved poorly.

not sure about 4.x mac.
Keywords: 4xp
QA Contact: esther → sheelar
QA Contact: sheelar → esther
*** Bug 225143 has been marked as a duplicate of this bug. ***
we just got a new duplicate of this bug and this is the type of bug that can
frustrate a user into not using Mozilla Mail anymore. 
I'm suggesting that we block for 1.6
Flags: blocking1.6b?
*** Bug 225567 has been marked as a duplicate of this bug. ***
Flags: blocking1.6b? → blocking1.6b-
To comment 1(In reply to comment #1)
> marking 4xp because 4.x windows allowed "a/b"

Why it should be allowed under windows? Try to create a folder "a/b" with the
explorer and you will see that's not possible.

Within bug 225567 we have some additionally informations... At the moment it's
possible to rename a folder "test" to "a/b" but we will lose access until
Mozilla is restarted. If i create a folder "test" before the restart then I have
two folders with the same name afterwards, because "a/b" is renamed back to
"test" after the restart.
*** Bug 238742 has been marked as a duplicate of this bug. ***
*** Bug 230961 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 140212 ***

*** This bug has been marked as a duplicate of 140212 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
v.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.