Title:
[ANeff] Bug for: cfimap listallfolders shows child folders duplicated into every other parent
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 04/28/2016
Components: Net Protocols
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 0
cfimap listallfolders shows child folders duplicated into every other parent
Example: If heirarchy foo/bar exists (parent foo containing bar), along w/ Inbox and Deleted Items folders, then listallfolders also shows Inbox/bar and Deleted Items/bar.
Repro:
1) Start w/ mailbox containing only two folders: Inbox and Deleted Items.
2) Run this code (which creates parent folder "foo" containing child folder "bar"):
<cfscript>
emailServer = "mail.domain.com";
emailAddress = "user@domain.com";
emailPassword = "password";
cfimap(action="open", server=emailServer, username=emailAddress, password=emailPassword, connection="myConnection");
cfimap(action="createfolder", connection="myConnection", folder="foo");
cfimap(action="createfolder", connection="myConnection", folder="foo/bar");
cfimap(action="listallfolders", connection="myConnection", recurse=true, name="result1");
cfimap(action="listallfolders", connection="myConnection", recurse=true, name="result2", folder="Inbox");
cfimap(action="listallfolders", connection="myConnection", recurse=true, name="result3", folder="Deleted Items");
cfimap(action="listallfolders", connection="myConnection", recurse=true, name="result4", folder="foo");
cfimap(action="close", connection="myConnection");
result1 = queryExecute("SELECT * FROM result1 WHERE fullname = 'foo/bar'", [], {dbtype="query"});
result2 = queryExecute("SELECT * FROM result2 WHERE fullname = 'foo/bar'", [], {dbtype="query"});
result3 = queryExecute("SELECT * FROM result3 WHERE fullname = 'foo/bar'", [], {dbtype="query"});
result4 = queryExecute("SELECT * FROM result4 WHERE fullname = 'foo/bar'", [], {dbtype="query"});
writeDump(result1);
writeDump(result2);
writeDump(result3);
writeDump(result4);
</cfscript>
Actual result: listallfolders lists "bar" child folder in "Inbox", "Deleted Items" and "foo".
Expected result: listallfolders should only list "bar" child folder in "foo".
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4146119
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
External Test Config: Verified on Windows 10 and Windows Server 2012 R2 in CF11 Update 7 (build 11,0,07,296330) and CF2016 (build 2016.0.01.298299).
Attachments:
- May 26, 2016 00:00:00: 1_listAllFolders.jpg
- July 08, 2016 00:00:00: 2_20160707_CF11AndCF2016.jpg
Comments: