[ 
https://issues.apache.org/jira/browse/VFS-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory resolved VFS-501.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1
         Assignee: Gary Gregory

I committed a different fix from the suggested patch. Please review and provide 
feedback when you can. Thank you for the report.

{noformat}
commit -m "[VFS-501] Hide passwords from log/console output. Commit a different 
fix from the suggested patch." (9 paths specified)
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/FileObject.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/impl/DecoratedFileObject.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/tasks/CopyTask.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/tasks/DeleteTask.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/tasks/MoveTask.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/core/src/main/java/org/apache/commons/vfs2/tasks/SyncTask.java
    Sending        
C:/vcs/svn/apache/commons/trunks-proper/vfs/src/changes/changes.xml
    Transmitting file data ...
    Committed revision 1541152.
{noformat}


> Hide passwords from log/console output
> --------------------------------------
>
>                 Key: VFS-501
>                 URL: https://issues.apache.org/jira/browse/VFS-501
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Yves Schumann
>            Assignee: Gary Gregory
>             Fix For: 2.1
>
>         Attachments: HidePassword.patch
>
>
> If files should be copied to a smb-share, the connection string has the form 
> smb://<domain>\<username>:<password>@<fqdn>/<path...>. The bad thing is that 
> the used password is written to the log output which is a NoGo for production 
> use.
> The attached patch modifies CopyTask, DeleteTask, MoveTask and SyncTask by 
> filtering out all characters between ":" and "@" and replaces them with 
> asterisks on the log output.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to