Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

POP CFC
Project Home Known Issues Contact Project

POP CFC Issue: Parsing a file return an empty Query on Lucee/Railo

Name: Parsing a file return an empty Query on Lucee/Railo
ID: 13
Project: POP CFC
Type: Bug
Area: Code
Severity: High
Status: Fixed
Related URL:
Creator: Kim Belanger
Created: 01/19/16 3:55 PM
Updated: 01/15/17 1:25 PM
Description: I just switched from ACF to Lucee, and the same code that was working on ACF now return empty queries under Lucee. I'm trying to get to the bottom of it, but tought that maybe someone seeing this would give me some pointers as to where to start.

Excerpt:
<cfset popAccount = createObject("component", popcfcloc).init()>

<cfset message = popAccount.loadFromFile("R:\_GED_\AUTOEMAILS\#msg.file#")>

msg.file being a valid rfc2822 email
History: Created by kbelange (Kim Belanger) : 01/19/16 3:55 PM

Comment by kbelange (Kim Belanger) : 01/19/16 4:54 PM
changes pop.cfc 844 to 855:

<cfif isDefined("RecipientArray") AND NOT IsNull(RecipientArray)>
   <cfset recipient = ArrayToList(RecipientArray)>
</cfif>
<cfif isDefined("CCArray") AND NOT IsNull(CCArray)>
   <cfset CC = ArrayToList(CCArray)>
</cfif>
<cfif isDefined("fromArray") AND NOT IsNull(fromArray)>
   <cfset sender = ArrayToList(fromArray)>
</cfif>
<cfif isDefined("ReplyToArray") AND NOT IsNull(ReplyToArray)>
   <cfset ReplyTo = ArrayToList(ReplyToArray)>
</cfif>

Lucee returns NULL, and is defined returns true, triggering a cast exception.

Updated by newmediadev (Paul Vernon) : 01/15/17 1:25 PM
Added the suggested code updates and introduced the fix as of version 1.91 of POP CFC. Thanks

To add a comment to this bug, please login using the link above.