Transfert de fichier via serveur FTP
Posted: Fri Jun 11, 2010 10:45 am
J'ai une application au travail avec laquelle je peux transférer des fichiers via un serveur FTP.
J'ai installé WarFTP et je me connecte au serveur.
Mais lorsque vient le temps de downloadé le fichier, ça ne marche pas. Il n'est pas enregistré sur mon ordinateur.
Dans mon serveur FTP, je vois le fichier passer, mais rien dans le folder de destination.
Le but est de pogner le fichier (cd071306.xls dans le cas présent) pis de l'enregistrer dans le folder C:\CDR de mon PC.
J'ai runné un débug sur le transfert et ça me donne ça
2010 06 07 13:06] Connected to Local IP: 10.1.112.83
[D 2010 06 07 13:06] 00016 prelogin cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 prelogin cntr Clear To Send.
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Command: USER anyone
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1980 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1993 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2028 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2047 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2163 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: PASS anyone
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\): Perms= Home List Recursive Root
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2241 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[L 2010 06 07 13:06] 00016 anyone cntr User from 10.18.6.52 logged in
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2244 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2246 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \.message.ftp.txt
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\.message.ftp.txt): Perms= Home List Recursive Root
[D 2010 06 07 13:06] GetPath(): File does not exist.
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: SYST
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: PORT 10,18,6,52,170,33
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: STOR cd071306.xls
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \cd071306.xls
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\cd071306.xls): Perms= Home List Recursive Root
[D 2010 06 07 13:06] GetPath(): Access denied - UserPerms.m_Write
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: QUIT
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[L 2010 06 07 13:06] 00016 anyone cntr User from 10.18.6.52 logged out
[D 2010 06 07 13:06] CUser::Save(): User database flushed.
Le bout qui me chicitte, c'est [D 2010 06 07 13:06] GetPath(): Access denied - UserPerms.m_Write
J'ai eu beau chercher, j'vois pas où ce folder est protéger en écriture
J'ai installé WarFTP et je me connecte au serveur.
Mais lorsque vient le temps de downloadé le fichier, ça ne marche pas. Il n'est pas enregistré sur mon ordinateur.
Dans mon serveur FTP, je vois le fichier passer, mais rien dans le folder de destination.
Le but est de pogner le fichier (cd071306.xls dans le cas présent) pis de l'enregistrer dans le folder C:\CDR de mon PC.
J'ai runné un débug sur le transfert et ça me donne ça
2010 06 07 13:06] Connected to Local IP: 10.1.112.83
[D 2010 06 07 13:06] 00016 prelogin cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 prelogin cntr Clear To Send.
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Command: USER anyone
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1980 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=1993 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2028 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2047 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 prelogin cntr Debug marker: Line=2163 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: PASS anyone
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\): Perms= Home List Recursive Root
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2241 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[L 2010 06 07 13:06] 00016 anyone cntr User from 10.18.6.52 logged in
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2244 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=2246 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \.message.ftp.txt
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\.message.ftp.txt): Perms= Home List Recursive Root
[D 2010 06 07 13:06] GetPath(): File does not exist.
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: SYST
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: PORT 10,18,6,52,170,33
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: STOR cd071306.xls
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] \cd071306.xls
[D 2010 06 07 13:06] IsPartOfPath(): Accepting '\' + Recursive as global access to all paths.
[D 2010 06 07 13:06] GetUserPermsOnPath(\cd071306.xls): Perms= Home List Recursive Root
[D 2010 06 07 13:06] GetPath(): Access denied - UserPerms.m_Write
[D 2010 06 07 13:06] 00016 anyone cntr Debug marker: Line=1941 File='C:\devel\src\Msvc4\tFTPd32\CFtp.cpp'
[D 2010 06 07 13:06] 00016 anyone cntr Command: QUIT
[D 2010 06 07 13:06] 00016 anyone cntr SendCtrlMsg(): Unable to open message file
[L 2010 06 07 13:06] 00016 anyone cntr User from 10.18.6.52 logged out
[D 2010 06 07 13:06] CUser::Save(): User database flushed.
Le bout qui me chicitte, c'est [D 2010 06 07 13:06] GetPath(): Access denied - UserPerms.m_Write
J'ai eu beau chercher, j'vois pas où ce folder est protéger en écriture