[jboss-jira] [JBoss JIRA] Closed: (JBESB-337) FtpFileHandler assumes no subdirectories in getFileContents, but does not check
Mark Little (JIRA)
jira-events at jboss.com
Mon Jan 8 09:25:27 EST 2007
[ http://jira.jboss.com/jira/browse/JBESB-337?page=all ]
Mark Little closed JBESB-337.
-----------------------------
Resolution: Done
> FtpFileHandler assumes no subdirectories in getFileContents, but does not check
> -------------------------------------------------------------------------------
>
> Key: JBESB-337
> URL: http://jira.jboss.com/jira/browse/JBESB-337
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Rosetta
> Affects Versions: 4.0 CR2
> Reporter: Mark Little
> Assigned To: Mark Little
> Fix For: 4.0 CR2
>
>
> Unsure whether this is a bug or inadequate documentation. For now I am assuming the former. Have added the following to the method.
> String name = file.getName();
>
> if (file.toString().length() > name.length())
> {
> _logger.debug("FtpFileHandler.getFileContents on "+file+" will ignore because of directory.");
>
> return null;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list