If you look at sshd-core/src/docs/draf-ietf-secsh-filexfer-13.txt, the SSH_FXP_REALPATH can include a control byte, and the default value is SSH_FXP_REALPATH_NO_CHECK which means that the call must not fail. I guess we should check this flag correctly and default to the right behavior (which would not throw the exception in writeAttrs). Would you write a patch for that ? I'll be travelling tomorrow but i would try to review and apply tomorrow evening.
On Sun, May 9, 2010 at 16:15, Frank van der Kleij <kl...@hotmail.com> wrote: > > I was doing some tests and found a problem on uploading. > > When doing the upload REALPATH is called on the file that is about to be > created, but in writeAttrs there is a check whether the file actually exists > and an exception is thrown. > > When I remove the exception throwing in writeAttrs then all seems to work > correctly, so that is the easy solution. > > I believe that in the specs it says that on REALPATH dummy attributes > should be sent so that's an option too. > > Any preference? > > Frank > > PS: this is unrelated, but if getUnixDate would be public I could use it in > my subclass... > > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com