Is this a problem or is this some expected behavior that I do not understand.

TEST CASE:
I have the following basic CFC to that is meant to be the action of a form.

Test.cfc
<cfcomponent>
        <cffunction name="formFunc" access="remote" returntype="void">
                <cfscript>
                        session.test = structNew();
                        session.test.foo = "bar3";
                        session.test.form = duplicate(form);
                </cfscript>
                
                <cflocation url="http://playground/form_cfc_tests/test2.cfm"; 
addtoken="no">
        </cffunction>
</cfcomponent>

I then have the two following forms to access copies of this CFC in different 
locations.  The first one is in the same directory as the form; the second is 
in a directory that is mapped as a virtual directory ["resources"] to the 
website in IIS.

Test.cfm
<cfdump var="#session#">
<cfform action="test2_Action.cfc" method="post">
        <input type="text" name="aField">
        <input type="hidden" name="method" value="formFunc">
        <input type="submit" value="submit">
</cfform>

<cfform action="/resources/CFCs/test2_Action.cfc" method="post">
        <input type="text" name="aField">
        <input type="hidden" name="method" value="formFunc">
        <input type="submit" value="submit">
</cfform>
<cfset structDelete(session,"test")>

The first form that accesses the copy of the CFC in the same directory works as 
I would expect it to.  The values are set in the session scope, the cflocation 
is followed and then when the session scope is dumped in the form file, the 
values set in the CFC are there.

The second form does not do this.  The CFC is processed without exception, but 
when the cflocation is followed and the session scope is dumped, none of the 
values set in the CFC exist.  Is this correct? Is it a known bug? If so, has it 
been fixed?

Thank You

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184663
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to