RE: SFTP problems

2010-05-09 Thread Frank van der Kleij
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

[Vysper] XML Namespaces [WAS: Re: Moving new nbxml in trunk]

2010-05-09 Thread Bernd Fondermann
Niklas Gustavsson wrote: On Wed, May 5, 2010 at 7:55 PM, Bernd Fondermann bernd.fonderm...@googlemail.com wrote: The group chat problem is between Psi and Psi. But I didn't test that today, but will tomorrow. Great, let me know the results (or how to reproduce it). And I don't think

Re: [Vysper] XML Namespaces [WAS: Re: Moving new nbxml in trunk]

2010-05-09 Thread Niklas Gustavsson
On Sun, May 9, 2010 at 8:23 PM, Bernd Fondermann bf_...@brainlounge.de wrote: What I wanted to achieve with the initial implementation, is that namespaces get propagated automatically within the scope. That's also my notion of how XML default namespaces are scoped and what the patch is

Re: [Vysper] XML Namespaces [WAS: Re: Moving new nbxml in trunk]

2010-05-09 Thread Bernd Fondermann
Niklas Gustavsson wrote: On Sun, May 9, 2010 at 8:23 PM, Bernd Fondermann bf_...@brainlounge.de wrote: What I wanted to achieve with the initial implementation, is that namespaces get propagated automatically within the scope. That's also my notion of how XML default namespaces are scoped

Re: [Vysper] XML Namespaces [WAS: Re: Moving new nbxml in trunk]

2010-05-09 Thread Niklas Gustavsson
On Sun, May 9, 2010 at 9:52 PM, Bernd Fondermann bf_...@brainlounge.de wrote: This example is especially appropriate, as it includes beer: We like that of course :-) ?xml version='1.0'? Beers  !-- the default namespace inside tables is that of HTML --  table

Re: [Vysper] XML Namespaces [WAS: Re: Moving new nbxml in trunk]

2010-05-09 Thread Niklas Gustavsson
On Sun, May 9, 2010 at 10:19 PM, Niklas Gustavsson nik...@protocol7.com wrote: ... where the parent x element is created and see what namespace that is Sorry, that should have been query element. I'm too tired :-) /niklas

Re: SFTP problems

2010-05-09 Thread Guillaume Nodet
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

DecodingStateProtocolDecoder's problem

2010-05-09 Thread Stanley Ding
Here is the core decoding code: for (;;) { IoBuffer b = undecodedBuffers.peek(); if (b == null) { break; } int oldRemaining = b.remaining(); state.decode(b, out); int newRemaining = b.remaining();

Re: SFTP problems

2010-05-09 Thread Guillaume Nodet
I think I've actually fixed the issue. The problem is that in version 3, the reply to SSH_FXP_REALPATH should always send back dummy attributes. 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