cfdirectory takes an OS path

You need to wrap it in an expandpath() to convert it to the actual os path

A

On 28 May 2012 19:52, Jason Allen <[email protected]> wrote:

> Hi Guys,
>
> I'm getting a weird result when using a drive mapping.
>
> I've created a mapping for 'www' which goes to a specific folder in my
> app's folder.
>
>     <mapping name="/www">
>       <directory>C:/openbd/tomcat/webapps/myapp</directory>
>       <name>/www</name>
>       <displayname>/www</displayname>
>     </mapping>
>
> However, when I run the following code, it's actually creating the
> directory at c:\www\imagehost\profiles\#newUserID.id# instead of the
> mapping
>
>
> <cfdirectory action="create" 
> directory="\www\imagehost\profiles\#newUserID.id#">
>
> now.. My first thought is that it's a permissions issue. I have tomcat
> running as user 'openbd' and the user 'openbd' has full permissions to the
> webroot folder and any subfolders.  I logged into the server as 'openbd'
> and as a logged in windows user, I have no problems creating folders
> anywhere on the machine, much less in the webapp folder or subfolders.
>
> Going back to OpenBD admin's page, if I try and verify the mapping it says
> 'The logical path specified is not accessible. Please verify that the
> directory exists and has the correct permissions.'  I've never had a
> problem making a mapping before, and the url I'm putting in as the physical
> location is legit. I can copy the url and paste it into windows file
> explorer and it works fine.
>
> Any ideas?
>
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>



-- 
Alex Skinner
Managing Director
Pixl8 Interactive

Tel: +448452600726
Email: [email protected]
Web: pixl8.co.uk

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to