tracker issue : CF-4146119

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: cfimap listallfolders shows child folders duplicated into every other parent

| View in Tracker

Status/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:

  1. May 26, 2016 00:00:00: 1_listAllFolders.jpg
  2. July 08, 2016 00:00:00: 2_20160707_CF11AndCF2016.jpg

Comments:

Hi Aaron, I have tried the sample code on CF2016, and i'm not able to repro the bug. Attaching the screenshot.
Comment by HariKrishna K.
2990 | May 26, 2016 12:19:02 AM GMT
Closing this since we haven't heard back from the user. We can reopen the issue, if we have any more info on this.
Comment by HariKrishna K.
2991 | July 07, 2016 01:23:12 AM GMT
Hi Hari, Sorry for the delay. Attached 20160707_CF11AndCF2016.jpg is what I see in builds 11,0,07,296330 and 2016.0.01.298513. Definitely still a bug. Thanks!, -Aaron
Comment by External U.
2992 | July 07, 2016 12:56:53 PM GMT
Can this ticket please be re-opened?
Comment by External U.
2993 | July 07, 2016 12:57:50 PM GMT
Hello?
Comment by External U.
2994 | July 15, 2016 01:10:22 AM GMT
Hi Aaron, Can you let me know what is the mail server that you have used to try this? I will re-verify this and update you. Thanks, Hari
Comment by HariKrishna K.
2995 | July 15, 2016 04:38:21 AM GMT
Aaron, What is the email server that you are trying to verify it against? I have verified it with hMailServer and it works.
Comment by HariKrishna K.
2996 | August 02, 2016 02:19:52 AM GMT
Aaron, it would help us if we have the requested info.
Comment by Vamseekrishna N.
2997 | August 24, 2016 12:17:40 AM GMT
As I couldn't repro this and haven't got a reply back from the user. Closing the bug. If in case you are able to repro it in the newer version of SmarterMail, we shall re-open this bug and look into it.
Comment by HariKrishna K.
2998 | August 25, 2016 10:42:09 PM GMT