[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Commented] (VFS-349) secure FTP Problem with Commons vfs
From:       "PRAVEEN KASAM (Commented) (JIRA)" <jira () apache ! org>
Date:       2011-09-30 13:42:46
Message-ID: 1113529140.11349.1317390166038.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VFS-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118062#comment-13118062 \
] 

PRAVEEN KASAM commented on VFS-349:
-----------------------------------

Thanks for your response. 

Due to this bug we decided not to use Commons VFS and I started using JSCH. 

Since it has been while ago, I am all set. 

Sent from my iPhone




                
> secure FTP Problem with Commons vfs
> -----------------------------------
> 
> Key: VFS-349
> URL: https://issues.apache.org/jira/browse/VFS-349
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Linux server
> Reporter: PRAVEEN KASAM
> Labels: test
> Original Estimate: 24h
> Remaining Estimate: 24h
> 
> I am facing wiered problem in apache commons vfs. I have a method which will create \
> the folder name in remote server using secure FTP. I crated a web-application for \
> this. When I call the below method from web it works fine, no matter how many times \
> you call this method. Now I am testing this using the Jmeter script multiple times. \
> When I execute the script first time it creates the folder and deletes (Calling \
> delete method to delete the folder which I didn't include here and executing fine.) \
> When it tries to create the same folder second time it says The specified directory \
> already exists if I connect the server and see there is no folder exists. I am \
> using file system manager in VFS. Please let me know what I was doing wrong. Please \
> let me know if you have any questions. Thanks in advance. private FileSystemManager \
> fileSystemManager;   
> private FileSystemOptions fileSystemOptions;  
> 
> @Autowired  
> public void setFileSystemManager(FileSystemManager fileSystemManager) {  
> this.fileSystemManager = fileSystemManager;  
> }  
> 
> @Autowired  
> public void setFileSystemOptions(FileSystemOptions fileSystemOptions) {  
> this.fileSystemOptions = fileSystemOptions;  
> }  
> 
> @RequestMapping(value = "/app/newDirectoryForm", method = RequestMethod.GET)  
> public ModelAndView showNewDirectoryForm() {  
> return new ModelAndView(NEW_DIRECTORY_FORM, "request", new \
> CreateDirectoryRequest());   }  
> 
> @RequestMapping(value = "/app/createDirectory", method = RequestMethod.POST)  
> public String createDirectory(@Valid @ModelAttribute("request") \
> CreateDirectoryRequest request, BindingResult bindingResult) throws Exception {   \
> if (bindingResult.hasErrors())   return NEW_DIRECTORY_FORM;  
> 
> FileObject fo = null;  
> try {  
> fo = fileSystemManager.resolveFile(request.getDirectoryPath(), fileSystemOptions);  \
>  if (fo.exists()) {  
> bindingResult.addError(new FieldError("request", "directoryPath", \
> request.getDirectoryPath(), false, null, null, "The specified directory already \
> exists."));   return NEW_DIRECTORY_FORM;  
> }  
> fo.createFolder();  
> }  
> finally {  
> if (fo != null) fo.close();  
> }  
> 
> return SUCCESS_REDIRECT;  
> }   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic