[ 
https://issues.apache.org/jira/browse/SSHD-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16795534#comment-16795534
 ] 

Subramaniajeeva commented on SSHD-907:
--------------------------------------

> Please make sure you are referring to *SSHD* version 2.3

Yes, I meant mina *SSHD.*

> you can attach attributes to the {{Handle}} that is being provided to the 
> various {{SftpEventListener}} callbacks.

will try that.

> Are the custom attributes attached *unconditionally*

Yes, they are being attached unconditionally. Once the user authenticate, I set 
the type of user as an attribute.

> Can you try compiling [https://github.com/lgoldstein/mina-sshd/tree/SSHD-907] 
> and see if it fixes the problem?

Will do that. Thanks for checking.

> Clearing user defined attributes in preclose is creating inconsistent 
> behaviour
> -------------------------------------------------------------------------------
>
>                 Key: SSHD-907
>                 URL: https://issues.apache.org/jira/browse/SSHD-907
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Subramaniajeeva
>            Assignee: Goldstein Lyor
>            Priority: Major
>         Attachments: scp_nullified_attr.log
>
>
> As a part of 
> [https://github.com/apache/mina-sshd/commit/f5d036ddd3de3521fb9f83253e30eab67bdbbcb3],
>  the user defined attributes are getting cleared from session.
> This is creating inconsistent behaviour in `SftpEventListener` closed(). The 
> attributes are being vanished intermittently and the vanishing part is not 
> consistent.
>  
> Is there any race condition which is not being handled properly?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to