tracker issue : CF-3734319

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

CFIMAP action GETALL breaks when there is an email attachment with square brackets

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Steven Springer / Steven Springer (Tiberius)

Created: 04/01/2014

Components: Language, Java Integration

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / CF10_Update14

Priority/Frequency: Minor / Unknown

Locale/System: English / Win All

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem Description: When reading an inbox, where an attachment has square brackets. ie. [untitled].pdf, cfimap returns java.lang.StringIndexOutOfBoundsException: String index out of range: -1.

Steps to Reproduce: cfimap folder with an attachment like [untitled].pdf

Actual Result: An exception occurred while performing action GETALL in cfimap tag.

Expected Result: Clean read, or non-failure so something can be done to the rest of the structure

Any Workarounds: none found

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3734319

External Customer Info:
External Company:  
External Customer Name: Tiberius
External Customer Email:  
External Test Config: Windows Exchange 2010

Attachments:

Comments:

I'm hitting this in CF10 and CF11. I think the priority should be "Very High" and the Frequency should be "All users will encounter". Similar to CFIMAP bug CF-3345011
Comment by External U.
12918 | August 05, 2014 12:36:48 PM GMT
How is this closed and "fixed" when we're still experiencing the issue. Is there anything we need to do on our end to get this resolved?
Comment by External U.
12919 | September 05, 2014 12:52:35 PM GMT
The fix will be available in the next update for CF 10 and CF 11.
Comment by Rupesh K.
12920 | September 05, 2014 01:33:40 PM GMT
Can we test it out with a patch/hotfix ahead of time?
Comment by External U.
12921 | September 05, 2014 02:00:29 PM GMT
Sure. Reach out to cfsup@adobe.com
Comment by Rupesh K.
12922 | September 05, 2014 02:09:05 PM GMT
Hi Rupesh, This isn't fixed in CF11 Update 3. Instead of throwing an exception, the brackets and any characters w/in them are removed. Repro: <cfmail from="a@b.com" to="a@b.com" subject="subject"> <cfmailparam file="[].txt" content="a" /> <cfmailparam file="a[b]c.txt" content="b" /> <cfmailparam file="some file.txt" content="c" /> </cfmail> <cfimap action="getall" server="mail.b.com" username="a@b.com" password="password" name="q" /> <cfoutput>#q.attachments[q.RecordCount]#</cfoutput> Outputs tab-delimited string: ".txt ac.txt some file.txt" Couple Issues: 1) brackets, and their contents, are removed 2) attachments would be best returned as an array, not a string Thanks!, -Aaron
Comment by External U.
12923 | November 05, 2014 04:21:00 AM GMT
Regarding my last comment, that issue was fixed in CF11 Update 5. This ticket is now completely fixed. Thanks!, -Aaron
Comment by External U.
12924 | November 24, 2015 12:25:04 AM GMT