[jira] Commented: (VFS-148) Make DefaultFileSelectInfo public
[ https://issues.apache.org/jira/browse/VFS-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495716 ] Mario Ivankovits commented on VFS-148: -- Whats the reason for making it public?? This allows one to cast the passed FileSelectInfo to the DefaultfileSelectorInfo class and call one of the set* methods. Which is not what we want during traversing ... no? Make DefaultFileSelectInfo public - Key: VFS-148 URL: https://issues.apache.org/jira/browse/VFS-148 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Trivial Attachments: feature_DefaultFileSelectorInfo_public.patch See $summary, and patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-149) Add FileContent.attributeExists and removeAttribute.
[ https://issues.apache.org/jira/browse/VFS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-149. -- Resolution: Fixed Fix Version/s: 1.1 Applied - Thanks for the patch! Renamed attributeExists to hasAttribute Add FileContent.attributeExists and removeAttribute. Key: VFS-149 URL: https://issues.apache.org/jira/browse/VFS-149 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: feature_attributeExists-removeAttribute.patch See $summary and patch. Makes FileContent more like a map. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-150) Make AbstractFileObject easier to extend
[ https://issues.apache.org/jira/browse/VFS-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495722 ] Mario Ivankovits commented on VFS-150: -- Applied - Thanks for the patch! renamed method to doCreateFileContent, changed content var to FileContent type Make AbstractFileObject easier to extend Key: VFS-150 URL: https://issues.apache.org/jira/browse/VFS-150 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: feature_AbstractFileObject-DefaultFileContext-easier-to-extend.patch Add doGetContent(), a factory method that subclasses can override to return a different FileContent implementation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-150) Make AbstractFileObject easier to extend
[ https://issues.apache.org/jira/browse/VFS-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-150. -- Resolution: Fixed Fix Version/s: 1.1 Make AbstractFileObject easier to extend Key: VFS-150 URL: https://issues.apache.org/jira/browse/VFS-150 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: feature_AbstractFileObject-DefaultFileContext-easier-to-extend.patch Add doGetContent(), a factory method that subclasses can override to return a different FileContent implementation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-151) Allow files to return a custom FileContentInfo
[ https://issues.apache.org/jira/browse/VFS-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-151. -- Resolution: Won't Fix The FileContentInfo is not meant to be in the responsibility of the FileObject. Like the file command in unix the factory should try to determine the best FileContentInfo depending on the real FileContent by looking up the first few bytes and visiting a magic file. Though, if the FileObject would like to have its own FileContentInfo it could override AbstractFileObject.getFileContentInfoFactory Allow files to return a custom FileContentInfo -- Key: VFS-151 URL: https://issues.apache.org/jira/browse/VFS-151 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_FileContentInfo-subclass-overriding.patch See attached patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-152) Add DefaultFileObject.doGetContentInfo().
[ https://issues.apache.org/jira/browse/VFS-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-152. -- Resolution: Fixed Fix Version/s: 1.1 Applied - Thanks for the patch! Add DefaultFileObject.doGetContentInfo(). - Key: VFS-152 URL: https://issues.apache.org/jira/browse/VFS-152 Project: Commons VFS Issue Type: Bug Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: fix_DelegateFileObject-FileContentInfo.patch Need to call this on the wrapped file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-154) Find all Resources.properties and merge them.
[ https://issues.apache.org/jira/browse/VFS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495741 ] Mario Ivankovits commented on VFS-154: -- What is it good for? We do not have a single translation for now - or do you plan to provide one? ;-) Even then - If I guess correctly what you try to do: fallback to default properties if a key is missing in one of the translations; then java will do this already, no? From the ResourceBundle javadoc - getBundle() : Locale(fr, CH): result MyResources_fr_CH.class, parent MyResources_fr.properties, parent MyResources.class Find all Resources.properties and merge them. - Key: VFS-154 URL: https://issues.apache.org/jira/browse/VFS-154 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_merged_message_resources.patch Add CombinedResources, which fetches all Resources.properties. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-155) Implement more methods in DelegateFileObject
[ https://issues.apache.org/jira/browse/VFS-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-155. -- Resolution: Fixed Fix Version/s: 1.1 Applied - Thanks for the patch! Implement more methods in DelegateFileObject Key: VFS-155 URL: https://issues.apache.org/jira/browse/VFS-155 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: feature_DelegateFileObject-implement-more-doXXX.patch In DelegateFileObject, implement doRename, doRemoveAttribute, and doGetRandomAccessContent. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-156) Use a set to hold the listeners in AbstractFileSystem
[ https://issues.apache.org/jira/browse/VFS-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-156. -- Resolution: Won't Fix Adding a new (non optional) dependency is a no go. If we would like to avoid duplicate adds of listeners we can add a if (list.contains), though, I am fine with leaving this responsibility at the user. Use a set to hold the listeners in AbstractFileSystem - Key: VFS-156 URL: https://issues.apache.org/jira/browse/VFS-156 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_ListOrderedSet-listeners.patch Use a set(from commons-collections) to hold the listeners, so that a listener isn't added multiple times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-158) Call getLastModifiedTime once per loop in DefaultFileMonitor
[ https://issues.apache.org/jira/browse/VFS-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495746 ] Mario Ivankovits commented on VFS-158: -- In this case I am fine with the successive getLastModifiedTime call ... no problem ... if not wantend, that we use the latest value. Call getLastModifiedTime once per loop in DefaultFileMonitor Key: VFS-158 URL: https://issues.apache.org/jira/browse/VFS-158 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_getLastModifiedTime-inner-loop.patch Don't call getLastModifiedTime multiple times in the loop, as it may change between calls. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-159) Speed up VFS.isUriStyle and setUriStyle
[ https://issues.apache.org/jira/browse/VFS-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495753 ] Mario Ivankovits commented on VFS-159: -- How much is the performance win? Every good hotstop compiler should inline this code, no? Speed up VFS.isUriStyle and setUriStyle --- Key: VFS-159 URL: https://issues.apache.org/jira/browse/VFS-159 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_speed_up_VFS_URI_SET.patch Don't use a Boolean object in these methods, to implement tri-state setting. Speedup that shows in high-volume call graphs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-148) Make DefaultFileSelectInfo public
[ https://issues.apache.org/jira/browse/VFS-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495757 ] Mario Ivankovits commented on VFS-148: -- With other walking capabilities you mean stuff outside of VFS? AbstractFileObject.traverse() itself is private, so you never could use the DefaultFileSelectorInfo with any public/protected VFS api. Make DefaultFileSelectInfo public - Key: VFS-148 URL: https://issues.apache.org/jira/browse/VFS-148 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Trivial Attachments: feature_DefaultFileSelectorInfo_public.patch See $summary, and patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-154) Find all Resources.properties and merge them.
[ https://issues.apache.org/jira/browse/VFS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-154. -- Resolution: Fixed Fix Version/s: 1.1 Applied - Thanks for the patch! Find all Resources.properties and merge them. - Key: VFS-154 URL: https://issues.apache.org/jira/browse/VFS-154 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Fix For: 1.1 Attachments: feature_merged_message_resources.patch Add CombinedResources, which fetches all Resources.properties. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-156) Use a set to hold the listeners in AbstractFileSystem
[ https://issues.apache.org/jira/browse/VFS-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495763 ] Mario Ivankovits commented on VFS-156: -- reg LRUFileCache: I'll deprecate any cache other than the SoftRef, WeakRef as with any other implementation VFS will leak memory too ... it will never free the FileSystem map if you don't come up with a patch for this too :-) Even then LRUFileCache is optional. Might it be sufficient to add a method e.g. hasFileListener(xx) ? Use a set to hold the listeners in AbstractFileSystem - Key: VFS-156 URL: https://issues.apache.org/jira/browse/VFS-156 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.1 Reporter: Adam Heath Priority: Minor Attachments: feature_ListOrderedSet-listeners.patch Use a set(from commons-collections) to hold the listeners, so that a listener isn't added multiple times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-146) Add DelegateFileObject.getDelegateFile()
[ https://issues.apache.org/jira/browse/VFS-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-146. -- Resolution: Fixed Fix Version/s: 1.1 Applied - Thanks for the patch! Add DelegateFileObject.getDelegateFile() Key: VFS-146 URL: https://issues.apache.org/jira/browse/VFS-146 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Priority: Trivial Fix For: 1.1 Attachments: feature_add-getDelegateFile.patch See $summary and patch; this allows utility code to find the real underlying file, in the case we need the real file for processing(for code that requires java.io.File, etc). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PROPOSAL] Create a notifications mailing list
Hi! I am -0 on placing Continuum messages on a different mailing list because I like seeing the commit message(s) followed by a Continuum success/failure message. The Continuum message is a nice confirmation that the commit(s) did or did not break the build. Email clients can be configured to filter messages if the user prefers to not see the Continuum message or see the message in a different folder. The converse can also be said, filtering commit and Continuum messages into the same folder. Yep, these are my thoughts too. When Continuum is running stable I really prefer its messages showing up after the commit. Even a newbie developer should see that every commit triggers an (nearly) immediate action. In the end every developer should subscribe to the continuum notification list too ... so no need to split them. Ciao, Mario
Re: ClassNotFoundException RedirectTrackerNavigationHandler
Hi Michael! I get the following Exception after updating myFaces and tomahawk from 1.1.4 to 1.1.5. javax.faces.FacesException: java.lang.ClassNotFoundException: org.apache.myfaces.custom.redirectTracker.RedirectTrackerNavigationHandler at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:165) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:660) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:587) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148) This thingy is part of the myfaces tomahawk sandbox. Which version of the sandbox do you use? Please double check that you do NOT have both 1.1.4 and 1.1.5 in your classpath. Ciao, Mario
[jira] Resolved: (VFS-132) Attributes are case-senstive
[ https://issues.apache.org/jira/browse/VFS-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-132. -- Resolution: Fixed Fix Version/s: 1.1 yep .. I've no clue why I've done it ... should have written a comment ... damn. Since it is not clear what the benefit of this code could be I've disabled it as suggested. Thanks! Attributes are case-senstive Key: VFS-132 URL: https://issues.apache.org/jira/browse/VFS-132 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Reporter: Adam Heath Fix For: 1.1 Attachments: fix_attributes-are-case-sensitive.patch The set and list methods don't lowercase attribute names; why should get? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-133) Add RandomAccessMode.getModeString()
[ https://issues.apache.org/jira/browse/VFS-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-133. -- Resolution: Fixed Fix Version/s: 1.1 Thanks for the patch Add RandomAccessMode.getModeString() Key: VFS-133 URL: https://issues.apache.org/jira/browse/VFS-133 Project: Commons VFS Issue Type: New Feature Affects Versions: later Reporter: Adam Heath Priority: Trivial Fix For: 1.1 Attachments: feature_RandomAccessMode-getModeString.patch As $summary, that returns r, w, rw, or , as appropriate. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-134) Memory leak closing RandomAccessContent.
[ https://issues.apache.org/jira/browse/VFS-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-134. -- Resolution: Fixed Fix Version/s: 1.1 Wow - great catch. Thanks alot for the patch! Memory leak closing RandomAccessContent. Key: VFS-134 URL: https://issues.apache.org/jira/browse/VFS-134 Project: Commons VFS Issue Type: Bug Affects Versions: 1.1 Reporter: Adam Heath Fix For: 1.1 Attachments: fix_ThreadData-remove-Random.patch Closing RandomAccessContent causes a memory leak, because the object is removed from the wrong container. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Commons moving to TLP
Hi! [X ] +1 I support the proposal [ ] +0 I don't care [ ] -1 I'm opposed to the proposal because... Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Announcement] MyFaces 1.2 - 100%
Great work 1.2-Team! :-) Congratulation! --- Mario
Re: ExtensionsFilter amd compression filter
Hi! i have implemented a GZIP Filter for a JSF application that compresses the response that is sent to the browser. Can you please let me know how I can get these two working together. Any help or advice will be very useful. Check the ordering of your filter-mapping. It should be: 1) compression filter 2) extensions filter That way the output of the extensions filter will be passed through the compression filter. Ciao, Mario
Re: MyFaces community BOF at J1
Hi! Great idea! I'll try to send something by Monday. Ciao, Mario Hi *, we (Manfred and me, but get in contact with us if you are at J1, we'll share the stage!) have been accepted for a MyFaces community BOF at J1, and as the community is the most important asset in this project, we'd like to talk about the community. What I've thought about is to do a session where we show a photo of each of the MyFaces committers, nationality (so that we can show how different we are in region), age, and a funny statement with regards to her/him (either what she/he said or what one can say about her/him), and then what she/he's done for the MyFaces project (so we're introducing MyFaces and what it can do by introducing the MyFaces community). Now I've got three questions for you: - Is that an idea you'd approve of? - Would you be willing to send me photos until Tuesday the latest? - Would you be against being shown on a J1 presentation with your photo, plus a funny remark, which will hopefully be tasteful and not disgraceful ;) regards, Martin
Re: ppr and javascript response
Hi Ernst! that is exactly the solution we had in mind for that problem. Ah - great! :-) Unfortunately I didn't have time to implement that so far because there have always been more pressing issues. No hurry! I hope I'll be able to do so next week during ApacheCon. Have fun there. Ciao, Mario
Re: Design issue : how to replace ftp
Hi! The current application is not only to ftp a file, but it creates dir and subdir on the destination server. How can I achieve that using http protocol ? Is this a good idea using http ? Or any a better one ? Not sure if HTTP only is able to do all this, nor if there is a library which easily allows you to do so. What you can do is to use WEBDAV or (IMHO better) ssh/sftp. Have a look at the commons-vfs project [1] - it allows you to use various sources using a uniform url. Ciao, Mario [1] http://jakarta.apache.org/commons/vfs/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ppr and javascript response
Hi! As far as I know its not yet possible to process the javascript within the response, is it? Hmm ... a naive question, would it be really that easy if we just get all script tags and eval() their content? This would not work with referenced javascript files, but with embedded script code, no? Ciao, Mario
Re: redirect / and FacesMessage problem
Hi! So I don't need to register a PhaseListener or anything? Yep, no additional registration required. You'll get it automatically through the tomahawk sandbox jar. --- Mario Shawn -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 2:40 AM To: MyFaces Discussion Subject: Re: redirect / and FacesMessage problem Hi! I was checking out the RedirectTracker documentation. Is there any installation/usage documents other than the javadoc? To make use of the RedirectTracker you have to: * add the myfaces sandbox to your project * configure the init paramter org.apache.myfaces.redirectTracker.POLICY in your web.xml, set it to one of the following values: ** org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy captures the locale, request scoped beans, messages ** org.apache.myfaces.custom.redirectTracker.policy.MessagesRedirectTrackPo licy captures messages only ** org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy captures nothing - the default * configure org.apache.myfaces.redirectTracker.MAX_REDIRECTS if required (default is 20) If everything went fine you should see an additional parameter _rtid= added to the url (after the redirect). This will be used to find the captured data within the session. Simply adding the data to the session will not work with browser back, reload, multiple windows etc. Hope this helps for a start. Ciao, Mario -- mit freundlichen Grüßen Mario Ivankovits Software Engineering OPS EDV VertriebsgesmbH A-1120 Wien, Michael-Bernhard-Gasse 10 Firmenbuch Nr.: FN51233v, Handelsgericht Wien Tel.: +43-1-8938810; Fax: +43-1-8938810/3700 http://www.ops.co.at E-Mail: [EMAIL PROTECTED] Skype: mario_ivankovits
Re: redirect / and FacesMessage problem
Hi! I was checking out the RedirectTracker documentation. Is there any installation/usage documents other than the javadoc? To make use of the RedirectTracker you have to: * add the myfaces sandbox to your project * configure the init paramter org.apache.myfaces.redirectTracker.POLICY in your web.xml, set it to one of the following values: ** org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy captures the locale, request scoped beans, messages ** org.apache.myfaces.custom.redirectTracker.policy.MessagesRedirectTrackPolicy captures messages only ** org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy captures nothing - the default * configure org.apache.myfaces.redirectTracker.MAX_REDIRECTS if required (default is 20) If everything went fine you should see an additional parameter _rtid= added to the url (after the redirect). This will be used to find the captured data within the session. Simply adding the data to the session will not work with browser back, reload, multiple windows etc. Hope this helps for a start. Ciao, Mario
Re: [Shale-Spring] update to 2.0.1 ?
Matthias Wessendorf wrote: Later than expected, but my hard disk crashed, I am days behind my schedule :( Lucky guy if you are JUST DAYS behind your schedule . ;-) --- Mario
Re: MyFaces and HTML 4.01
Hi! Belen, Marco wrote: In order 'choose' an unique prefix, why not re-use a common way to create unique names in Java: Use a package-structure. There for until it can be configured in the web.xml how about using org_apache_myfaces_ as the clientID-prefix. My first reaction on this was: No, please don't as this will greatly increase the size of the rendered html page if you have tables or trees on it. On the other hand, if one would like to have short ids its simple to configure the id on the component level instead of using the autogenerated one - and IMHO its better to use manual component ids then the automatic created one as this makes the rendered page more readable (in case you have to look at the html source) So I'll have not problem to use this big clientId, just, maybe a o_a_m_id would make it too. Mike Kienenberger wrote: Finally, I proposed on the other thread that we allow the web.xml file to define the unique prefix. Unfortunately, I noticed now that the value has been declared final. Yep, not only final - more problematic it is static. What might be possible is to use system properties - at least a way to configure it then. Ciao, Mario
Re: [VFS] NFS Support
Hi Mark! I noticed that the VFS to-do list has an item to provide support for NFS. I was wondering if that work was already started? I am not aware that some started an implementation so ... its yours ;-) If not, I have a need in an upcoming project to support NFS. I noticed that YANFS (Sun's BSD licensed project at http://yanfs.dev.java.net) might be a good place to start. Yep, looks good. Is there a TCK that I should use to verify that the VFS interfaces were properly implemented? The VFS Test cases are a good starting point. Just create a base class for testing your nfs implementation (e.g. see the one for smb). Depending on the capabilities of the filesystem this will test various aspects like read/write/append/delete etc. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Vote] accepting Trinidad as a subproject
+1 Matthias Wessendorf schrieb: Hi, the Trinidad community has voted to graduate and being a subproject of the Apache MyFaces project ([1]). Now it's up to the MyFaces PMC to accept Trinidad as a subproject. Please cast your votes. -Matthias [1] http://mail-archive.com/adffaces-dev%40incubator.apache.org/msg02417.html -- mfg Mario Ivankovits - OPS EDV Vertriebsges.m.b.H. Software Engineering Michael-Bernhard-Gasse 10, A-1120 Wien Tel.: +43-1-8938810 Fax: +43-1-8938810/3700 E-Mail: [EMAIL PROTECTED] Skype: mario_ivankovits
latest AjaxChildComboBox and IE
Hi! Could someone please confirm that the AjaxChildComboBox component (latest sandbox) is broken on Internet Explorer. If so, we should open a jira ticket ... OR ... deprecate this component and propose pprPanelGroup for this use case which makes handling a little bit easer (once setup) as you can use the JSF select* components. Ciao, Mario
enhanced modal dialog
Hi! I'd like to announce that the latest tomahawk-sandbox (as per today) contains an enhanced version of the ModalDialog component. Its now possible to render another view within the content area of the dialog. To achieve this I've added three new attributes to the component: dialogTitle - if wanted, this allows you to automatically get a window caption including the provided title. closeButton - true|false - renders a close button if true - this setting requires a dialogTitle, otherwise no caption will be rendered at all. viewId - the JSF viewId you would like to render within the dialog Its also possible to add a submitOnEvent to this style of dialog box which allows you to issue a submit once the user closed the window using the ok button. In reality we do not know if you even have a OK button in your dialog view, so you simply have to set a js var to true to indicate the dismiss was due to an OK action. Important parts from the examples Example [1]: s:modalDialog dialogId=viewDialog dialogVar=viewDialog styleClass=viewDialog dialogTitle=ViewId Dialog closeButton=true viewId=dojo/dojoDialogView.jsf s:submitOnEvent event=dialogok for=dismissAction / /s:modalDialog Example [2] (see the _myfaces_ok stuff): h:outputLink value=# onclick=window.parent._myfaces_currentModal._myfaces_ok=true;window.parent._myfaces_currentModal.hide(); h:outputText value=close window / /h:outputLink There are some css style you can use to customize your dialog: Global styles: modalDialogDecoration - the caption table modalDialogTitle - the caption title row modalDialogTitleLeft - the caption title cell modalDialogTitleRight - the caption icons cell modalDialogCloser - the close-icon image modalDialogContent - the iframe Specific styles - according to the styles above you can also use {styleClass}Decoration, {styleClass}Title, {styleClass}TitleLeft, {styleClass}TitleRight, {styleClass}Closer, {styleClass}Content where you have to replace {styleClass} with the text provided at the styleClass attribute of your modalDialog component. See the .viewDialog* style configurations in [1] on how to configure the size of the component. Well, hope this is of any help for someone else too. PS: Maybe someone is willing to create a documentation for the ModalDialog component and adding this text? To a Wiki at least ... ? Thanks in advance! Have fun! Ciao, Mario [1] http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp?view=markup [2] http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialogView.jsp?view=markup
Re: enhanced modal dialog
Hi Matthias! Is the closeButton rendering a x image? If yes, I think it might be nice to have that button rendered as default. Yes I thought that too ... ok, will do so. Thanks for your input! Ciao, Mario smime.p7s Description: S/MIME Cryptographic Signature
Re: [VFS] Execute operation on a FileObject
Hi! First, please don't cross post between dev and user list ... uhmm ... do not cross post at all stay on the user list. I have instance of FileObject and I would like to start the associated file. Do you know if there is and implemented execute operation on a FileObject object? VFS do not support any native call, so you can't do something else than get the filename of your fileObject and use java.lang.Runtime.exec or use the JDIC [1] project which allows a more integrated way how to start files, e.g. urls staring a browser, doc files starting word etc Hope this helps. Ciao, Mario [1] https://jdic.dev.java.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VFS] Execute operation on a FileObject
Hi! My goal is to start shell scripts on remote server. Ok, I will take a look on the link you provided. Thanks. On remote server? ... Huh, this is not possible even with jdic. You need to have a look at the ssh (or maybe the rsh) protocol. For ssh you might be able to use the JSCH library you'll already have if you use the sftp protocol. If the remote server is a windows server and you have none of the above daemons installed you'll be out of luck. Than get the filename of your fileObject I know this is another question, but do you know if there any API for getting for example String of full path to the file (for example: drive:\folder\file)? What I see in version 1.0 that I can get only the string in VFS format but not the full path in File object or String object. No, but it should be easy to strip the scheme (e.g. file://) from the string. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom Managed Bean scope
Hi! What other ways such a problem can be handled? You can use JBoss Seam or Apache MyFaces Orchestra (which is the successor of the MyFaces conversation tag). JBoss Seam is a rather full blown thing which can do much more please refer to their homepage for further informations. Orchestra in contrast is relatively young and you have to use svn [1] to get in touch with it. It uses Spring to provide two new scopes - a conversation scope and a flash scope. In the svn checkout you will find some examples and xdocs which should help to jump up. The website should be online within the next week. Compared to Seam - Orchestra is very feature less, it just tries to solve the problems you have together with ORM mapper and it do not use annotations, but you can use it without ORM too ... thats the nice thing, its just a matter of configuration - and IMHO its a little easier to understand. Ciao, Mario [1] http://svn.apache.org/repos/asf/myfaces/current/orchestra
Re: Custom Managed Bean scope
Hi Conway! Does Orchestra require you to use Spring? Yes, parts of it. Some reasons are: *) Defined way to create a custom scope, means, in your spring config you can configure your beans with 'scope=conversation' *) Aspects. They are used to solve the ORM stuff and use cases where e.g. you'll end a conversation in the mid of a request (aop:scoped-proxy) This allows you to directly use a conversation scoped bean as JSF backing bean and gives you a way to deal with JSF component bindings if you need them in your backing bean if its in a scope broader than request (e.g conversation/session etc). Beside of the Spring configuration which you can copy from the examples you do not have to learn much about Spring. Do you have to deal with Hibernate or any other ORM mapper? Ciao, Mario
Re: Custom Managed Bean scope
Hi Conway! Uhm .. sorry, should have been Hi Fintan!
[Joda-interest] Week parsing result off by one year
Hi! The following code snipped: DateTime dt = DateTimeFormat.forPattern(ww.).withLocale(Locale.ENGLISH).parseDateTime(03.2005); System.err.println(dt.toString()); dt = DateTimeFormat.forPattern(ww.).withLocale(Locale.ENGLISH).parseDateTime(03.2006); System.err.println(dt.toString()); dt = DateTimeFormat.forPattern(ww.).withLocale(Locale.ENGLISH).parseDateTime(03.2007); System.err.println(dt.toString()); outputs 2004-01-12T00:00:00.000+01:00 2005-01-17T00:00:00.000+01:00 2007-01-15T00:00:00.000+01:00 Why this? Why are the first two parsings off by one year? I've tried it with joda 1.4 release. Thanks! Ciao, Mario - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest
Re: [vfs] vfs-sandbox jar 's vfs-providers.xml gets auto-loaded even when manually configuring
Hi Kostis! Notice that this error happens EVEN WHEN myproviders-only.xml file DOES NOT SPECIFY the smb provider! This is strange, do you have some time to debug into VFS to see whats going on? I don't find it strange; I believe it is obvious what happens: The vfs-providers.xml included into the sandbox jar gets auto-loaded (by the specs). Hehe ... I didn't find it strange that the vfs-providers.xml will be processed, but that the error message about a already defined smb::// mapping appears. BUGFIX: The solution would be to remove the vfs-providers.xml file from the sandbox completely, and put its content into the core jar's core/src/main/java/org/apache/commons/vfs/impl/providers.xml. Yea, but this wont happen for the default sandbox library by default. We can't put it into the core as then if one uses the core without the sandbox jar will get ClassNotFoundException's - and it wouldn't make any sense to add sandbox mappings to the core. So, what we need to find out is, why VFS complains about a duplicate smb:// mapping if you do NOT define it - this is something we might be able to fix. That's what would be nice if you could try to debug. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vfs] vfs-sandbox jar 's vfs-providers.xml gets auto-loaded even when manually configuring
Hi Kostis! So i cannot use a StandardFileSystemManager.configure(my-providers-only.xml) because i'm getting a: org.apache.commons.vfs.FileSystemException: Multiple providers registered for URL scheme smb. at org.apache.commons.vfs.impl.DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java:174) at org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:354) at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:254) at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:187) ... 29 more Notice that this error happens EVEN WHEN myproviders-only.xml file DOES NOT SPECIFY the smb provider! This is strange, do you have some time to debug into VFS to see whats going on? And no, its not possible to suppress the autoloading of vfs-providers.xml. Thats the reason why we have done it ;-) The only way is to remove this file from the jar. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-120) SFTP-Exception: com.jcraft.jsch.JSchException: session is down if the SFTP-Server was killed and restarted (a normal shutdown of the SFTP-Server occured no Exception afte
[ https://issues.apache.org/jira/browse/VFS-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485984 ] Mario Ivankovits commented on VFS-120: -- As a workaround you can do it that way, as long as you do not use this manager instance as singleton I see no side-effects. Still, I (or we? :-) ) should try to fix it. Ciao, Mario SFTP-Exception: com.jcraft.jsch.JSchException: session is down if the SFTP-Server was killed and restarted (a normal shutdown of the SFTP-Server occured no Exception after restart.) --- Key: VFS-120 URL: https://issues.apache.org/jira/browse/VFS-120 Project: Commons VFS Issue Type: Bug Affects Versions: 1.0 Environment: Tomcat 5.5 JDK 6.0 (build with JDK 5) commons-vfs-1.0.jar: Specification-Title: Commons VFS Implementation-Version: 1.0 JSCH: jsch-0.1.31.jar Reporter: Harald Brabenetz Priority: Critical The error occured after restarting if the SFTP-Server was KILLed!!. With a normal shutdown of the SFTP-Server, no exception after restarting occured. I found no function to force the reset of the session in SftpFileSystem.java There is a function: DefaultFileSystemManager manager = (DefaultFileSystemManager)VFS.getManager(); manager.freeUnusedResources(); But this works only if AbstractFileSystem.isReleaseable() returns true. And this this function return only true if all SFTP-FileObject are removed from the GarbageCollection (finally()-Methode). I cannot force a GarbageCollection. So there is no way to handle this Error! I must restart the VM (ServletContainer). org.apache.commons.vfs.FileSystemException: Could not copy file:///C:/TEMP/. to sftp://..;. at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:902) at com.bearingpoint.orf.chat.core.service.ExportManagerImpl.exportChatMessages(Unknown Source) at com.bearingpoint.orf.chat.core.service.ExportManagerImpl.startExportNow(Unknown Source) at com.bearingpoint.orf.chat.core.service.ExportManagerImpl$ExportManagerRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.commons.vfs.FileSystemException: Could not write to sftp://chat:[EMAIL PROTECTED]/home/chat/chatfile_12.zip. at org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1227) at org.apache.commons.vfs.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:373) at org.apache.commons.vfs.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:356) at org.apache.commons.vfs.FileUtil.copyContent(FileUtil.java:100) at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:893) ... 4 more Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at sftp://chat:[EMAIL PROTECTED]/. at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:144) at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetOutputStream(SftpFileObject.java:402) at org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1219) ... 8 more Caused by: com.jcraft.jsch.JSchException: session is down at com.jcraft.jsch.Session.openChannel(Session.java:756) at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:122) ... 10 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VFS] HTTP headers
Hi Philippe! I've looked at the code of the HTTP provider, and I didn't find any mean to play with HTTP headers ; I think it should be in HttpFileSystemConfigBuilder this is important for content negociation : Accept, Accept-language, etc Hmmm . yes, this could/sould be added to the HttpFileSystemConfigBuilder. Could you please open a jira for it, so we wont forget about it and maybe a patch ;-) Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VFS] Monitor interface change - possible improvement
Hi Steven! Here's my use case - I want to listen to a subset of the files within a folder. To do so with VFS I have to filter the events within my FileListener. I think it would be better that the FileMonitor interface accept a FileSelector in the add() and remove() function rather than a FileObject. By passing a file object I don't have as fine a control over what is being monitored. For backwards compatibility the existing add() and remove() functions could be kept for a while and marked deprecated. Yep ... nice idea. Volunteering? :-) --- Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (TOMAHAWK-951) ModalDialogRenderer renders a trailing , at createWidged
ModalDialogRenderer renders a trailing , at createWidged --- Key: TOMAHAWK-951 URL: https://issues.apache.org/jira/browse/TOMAHAWK-951 Project: MyFaces Tomahawk Issue Type: Bug Reporter: Mario Ivankovits Assigned To: Mario Ivankovits The ModalDialogRenderer renders a trailing , if no dialogAttrs will be used, this makes the component not working in IE. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: [vote] jci out of sandbox
Hi Torsten! 3x +1 might be enough ...but that does not really make me feel optimistic about the release vote ;) No more? Sorry, missed it ... too much work. +1 Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ochestra Site
Hi Manfred! group addition requested. please stay tuned... Ok - thanks. If you don't mind I'll tune to Slay Radio in the meanwhile only interesting if you owned a C64 ;-) Ciao, Mario
Re: Ochestra Site
Hi! group addition requested. please stay tuned... Thanks! It works now Ciao, Mario
Re: s:inputSuggestAjax problems with onchange
Hi! Be aware that if there is a bug in inputSuggestAjax, using submitOnEvent won't fix it. Jumping up to this discussion lately .. sorry for this .. too much work here. It might be that the submitOnEvent do not work with inputSuggestAjax. Do one have it running with it? As far as I remeber inputSuggestAjax uses some sort of hidden field for the real value to submit and a input text for the user input. Depending on how the javascript id will be calculated the submitOnEvent might hook on one or the other field, if its the hidden one, it won't work. All this just top of my head, don't know if I am correct. At least it is a dojo control which do some keyboard event control itself ... maybe submitOnEvent has some problems with it. If I manage to find some time tonight I'll have a look at it ... no promise ;-) Ciao, Mario
Re: s:inputSuggestAjax problems with onchange
Hi Mike! I don't think this is the issue. snip Yep. This code works as I'd expect it to work: snap Great, thanks for the test!! :-) Ciao, Mario
FacesServlet and preconfigured FacesContext
Hi! I create my own FacesContext in an ServletFilter (in the end around the FacesServlet). The FacesServlet itself too creates a FacesContext. In the end I have some problems with this setup as the Faces Messages added to my FacesContext are never shown as the JSF system will use the FacesContext created by the FacesServlet. The question is: Shouldn't the FacesServlet check if there is a FacesContext and use this one instead of creating a new one? What do the RI do? Ciao, Mario
Re: Ochestra Site
Hi Matthias! any news? I still do not know how to build the whole MyFaces Web-Site ... Without anyone volunteering - or at least give some pointers/logins/scripts I have no chance to move on. :-( Ciao, Mario
Re: FacesServlet and preconfigured FacesContext
Hi! perhaps the FacesCtxFactory should check that ? Ok, It turned out to be a little bit a complicated problem. First my use case: * A custom filter which creates a custom facesContext * A custom servlet which forwards to the FacesServlet (getServletContext().getRequestDispatcher(jsfPath).forward(req, res);) * The FacesServlet which creates a facesContext too I tried a custom FacesContextFactory which checks if there is already a facesContext and returns it if this is the case. It turned out that this can not work as the servletRequest/servletResponse objects from the filter are not the same as the one the FacesServlet sees. In the end the forward did not work due to the fact that the JSF system still sees the values from the Req/Rep objects hold by the custom FacesContext from the filter. I solved it with a custom FacesContext factory by checking to see if there is a previous context and if so ... get some of its values (locale/messages) and put them to the new facesContext. If we think this is of any use for someone else with such an exotic setup I can add the code to the sandbox or a wiki page. Ciao, Mario
Re: FacesServlet and preconfigured FacesContext
Just for the records: http://wiki.apache.org/myfaces/NestedFacesContext wiki sounds fine!
Re: Ochestra Site
Hi Wendy! Thanks for your infos, I'll try to move on ... This page has a section for publishing the MyFaces site, but it's old. Cn you please update it? http://wiki.apache.org/myfaces/Building_With_Maven Hehe ... sure ... once I know what to do :-) For example, the directory stated to change to to start the site build (myfaces-current/build) no longer exists ;-) Thanks anyway! Ciao, Mario
Re: Ochestra Site
Hi! If you got the Orchestra site to build (with mvn site?) Works ... for what I can say locally. Looks not that bad. then try mvn site-deploy to publish it. I do not have enough permissions to create a directory in /www/myfaces.apache.org at minotaur. What to do next? Could someone please grant me the required permission(s)? Thanks! Ciao, Mario
Re: Ochestra Site
Hi Manfred! Try a id -Gn on the command line. Does it print the group myfaces? No, it doesn't. Ciao, Mario
Ochestra Site
Hi! I saw some xdocs files are included in Ochestra; anyone volunteering to get it added to the site build? I managed to make orchestra/core build a site, though, I had to apply the following patch to the master-pom: Index: master-pom/pom.xml === --- master-pom/pom.xml (Revision 522170) +++ master-pom/pom.xml (Arbeitskopie) @@ -462,8 +462,8 @@ artifactIdmaven-checkstyle-plugin/artifactId version2.1/version configuration - configLocationconfig/myfaces-checks.xml/configLocation - headerLocationconfig/myfaces-header.txt/headerLocation + configLocationhttp://svn.apache.org/repos/asf/myfaces/maven/trunk/build-tools/src/main/resources/config/myfaces-checks.xml/configLocation + headerLocationhttp://svn.apache.org/repos/asf/myfaces/maven/trunk/build-tools/src/main/resources/config/myfaces-header.txt/headerLocation /configuration /plugin /plugins @@ -522,8 +522,8 @@ groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration - configLocationconfig/myfaces-checks.xml/configLocation - headerLocationconfig/myfaces-header.txt/headerLocation + configLocationhttp://svn.apache.org/repos/asf/myfaces/maven/trunk/build-tools/src/main/resources/config/myfaces-checks.xml/configLocation + headerLocationhttp://svn.apache.org/repos/asf/myfaces/maven/trunk/build-tools/src/main/resources/config/myfaces-header.txt/headerLocation /configuration version2.1/version /plugin Any objection to commit it? Or is there any other way to tell maven where to search the config files? And then, how to move on? What needs to be done to publish the site? Any help will be really appreciated. Ciao, Mario
[jira] Commented: (VFS-113) NullPointerException during getting InputStream from SftpFileObject
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482327 ] Mario Ivankovits commented on VFS-113: -- Yesterday I changed the sftp stuff to no longer read the whole file into memory but to use the stream based methods of jsch, so no it might be that this exception has goon or that it is even worse now ;-) Would be glad if you could give it a try. Thanks! Ciao, Mario NullPointerException during getting InputStream from SftpFileObject --- Key: VFS-113 URL: https://issues.apache.org/jira/browse/VFS-113 Project: Commons VFS Issue Type: Bug Reporter: Tim Rademacher Fix For: 1.1 Attachments: SftpFileObject.diff Hi, I experienced unregular NullPointerExceptions while getting an InputStream from an SftpFileObject. It only occures in a multithreading environment. I made a patch. By now it seems to work! Regards, Tim -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-106) VFS Truezip provider
[ https://issues.apache.org/jira/browse/VFS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482183 ] Mario Ivankovits commented on VFS-106: -- Hi! I had a look at the source now, there are a few minor issues: *) use of com.cirque namespace You have to change it to the org.apache namespace if we should add it to VFS *) use of xxx.local (the errors from the local file system provider) error messages Even if we duplicate the messages, I'd prefer to not reuse these message. I'd say using .truezip should be fine. *) e.printStackTrace somewhere I've seen such a statement. If there is no other way to handle it you should wrap it in an RuntimeException. *) test classes please add a test class for this thing too - and check if it works ;-) But the real blocker is, that I can't find truezip in any maven repository - you have to request it for upload - or ask the original author if he could upload it to the java.net maven repository; not sure about it. Hmmm ... Or you simply host it at sourceforge. There is a plugin interface in VFS which allows you to provide a jar file and by simply dropping it into the classpath it will be activated ... so equally comfortable as if it is within the VFS repository ... what do you think? Anyway - Thanks for the work Ciao, Mario VFS Truezip provider - Key: VFS-106 URL: https://issues.apache.org/jira/browse/VFS-106 Project: Commons VFS Issue Type: New Feature Reporter: Filip Defoort Attachments: TzFileObject.java, TzFileProvider.java, TzFileSystem.java Attached is a quicky truezip provider to allow for read/write access to zip/tar/... archives. See https://truezip.dev.java.net/ for details on truezip. Let me know how you want to proceed with something like this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-106) VFS Truezip provider
[ https://issues.apache.org/jira/browse/VFS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-106. -- Resolution: Incomplete VFS Truezip provider - Key: VFS-106 URL: https://issues.apache.org/jira/browse/VFS-106 Project: Commons VFS Issue Type: New Feature Reporter: Filip Defoort Attachments: TzFileObject.java, TzFileProvider.java, TzFileSystem.java Attached is a quicky truezip provider to allow for read/write access to zip/tar/... archives. See https://truezip.dev.java.net/ for details on truezip. Let me know how you want to proceed with something like this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-111) Closed OutputStream from FileContent does not throw IOException if further written to
[ https://issues.apache.org/jira/browse/VFS-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-111. -- Resolution: Fixed Fix Version/s: 1.1 I've added a check if the file has been closed to our MonitorOutputStream, so now it will fail fast. Thanks for pointing it out. Ciao, Mario Closed OutputStream from FileContent does not throw IOException if further written to - Key: VFS-111 URL: https://issues.apache.org/jira/browse/VFS-111 Project: Commons VFS Issue Type: Bug Affects Versions: 1.0 Environment: Windows XP, Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Reporter: Dr. Christian Möller Fix For: 1.1 I've a question regarding the behaviour of OutputStreams received from org.apache.commons.vfs.FileContent.getOutputStream(): If I call close() on them and further write some bytes to the stream, these writes take place silently without throwing an IOException (as it is done by usual Java streams like java.io.FileOutputStream); the data written after close() has been called does not appear in the target file, neither. As an example: byte[] SOME_BYTES = new byte[]{70, 71, 72}; FileObject tmpFile = VFS.getManager().resolveFile(tmp:test.txt); OutputStream os = tmpFile.getContent().getOutputStream(); os.write(SOME_BYTES); os.close(); os.write(SOME_BYTES); // Neither IOE is thrown nor bytes are written -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-112) Deadlock when a FileMonitor fires an event and another thread deletes a file at the same time
[ https://issues.apache.org/jira/browse/VFS-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-112. -- Resolution: Fixed Fix Version/s: 1.1 Thanks! I slightly changed the patch to avoid the additional creation of the ArrayList. I think it should do it too, please give it a try. Ciao, Mario Deadlock when a FileMonitor fires an event and another thread deletes a file at the same time - Key: VFS-112 URL: https://issues.apache.org/jira/browse/VFS-112 Project: Commons VFS Issue Type: Bug Reporter: Tim Rademacher Fix For: 1.1 Attachments: AbstractFileSystem.diff Hi! I experienced a deadlock when one thread (the DefaultFileMonitor) fires an event in which a file is modified and another thread deletes a file at the same time. The first thread first locks the listenerMap to inform all listener and then tries to lock the FileSystem fs to modify the file. The second thread first locks the FileSystem fs and then tries to inform all listener by locking the listenerMap. I already made a fix, but I don't know, if this affects anything else. Regards Tim -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-113) NullPointerException during getting InputStream from SftpFileObject
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-113. -- Resolution: Fixed Fix Version/s: 1.1 I applied your patch, though, having a stacktrace of the npe to do further investigation would be great. Thanks! Ciao, Mario NullPointerException during getting InputStream from SftpFileObject --- Key: VFS-113 URL: https://issues.apache.org/jira/browse/VFS-113 Project: Commons VFS Issue Type: Bug Reporter: Tim Rademacher Fix For: 1.1 Attachments: SftpFileObject.diff Hi, I experienced unregular NullPointerExceptions while getting an InputStream from an SftpFileObject. It only occures in a multithreading environment. I made a patch. By now it seems to work! Regards, Tim -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-116) Add Write capability to RandomAccessContent for all providers
[ https://issues.apache.org/jira/browse/VFS-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482198 ] Mario Ivankovits commented on VFS-116: -- I've had a deeper look at your patch now, and I'd say it do not do what I think it should do ;-) You simply request the outputStream using mout = fileObject.getOutputStream(); without honoring the current filePointer. Which means you'll always start overwriting the file. Also a true random output content has to provide thinks like seek(1000) write(a) seek(2000) write(b) seek(1500) write(c) which I suspect would really work with at least http/ftp server, don't know if sftp has such an enhanced protocol. For your use case you simply could request an outputStream through FileObject.getContent(), no? Ciao, Mario Add Write capability to RandomAccessContent for all providers - Key: VFS-116 URL: https://issues.apache.org/jira/browse/VFS-116 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.0, 1.1 Environment: Java 1.5 / any os Reporter: Andrew Serff Attachments: AbstractRandomAccessStreamContent.java, FtpFileProvider.java, FtpRandomAccessContent.java, HttpRandomAccesContent.java, SftpFileProvider.java, SftpRandomAccessContent.java, svn_diff.txt Writing to RandomAccessContent seems to only work for the File provider. Reading works for all it seems, just not writing. The main ones I'm worried about are ftp and sftp. Here is what I know: FtpRandomAccessContent and SftpRandomAccessContent both extend from AbstractRandomAccessStreamContent. (The Http one does too, but I'm not interested in that one right now.) AbstractRandomAccessStreamContent extends from RandomAccessContent which only exposes the read methods and throws UnsupportedOperationExceptions for all the write methods. If you just add the write methods to AbstractRandomAccessStreamContent (calling getDataOutputStream().write*(v)) and then add an abstract method getDataOutputStream() to it, the subclasses will need to implement that. You also need to add the RANDOM_ACCESS_WRITE Capability to the SFTP and FTP FileProviders. I have been trying to do this tonight but I'm not having much luck with getting anything to write with both FTP and SFTP. I'm unfamiliar with JSch and Commons FTP, so I might just be missing something. If anyone could help, I'd be glad to submit a fix for this Improvement issue. I will either attach my changed files or add some comments to this issue to show the changes I have made. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-107) large Sftp transfers fail with OutOfMemoryError: Java heap space
[ https://issues.apache.org/jira/browse/VFS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-107. -- Resolution: Fixed Fix Version/s: 1.1 ok, I've changed VFS head now to use the stream based methods, the test cases still work, so it looks like it works now. Thanks! Ciao, Mario large Sftp transfers fail with OutOfMemoryError: Java heap space Key: VFS-107 URL: https://issues.apache.org/jira/browse/VFS-107 Project: Commons VFS Issue Type: Bug Affects Versions: Nightly Builds Environment: java version 1.5.0_04 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing) Linux version 2.6.17-1.2142_FC4 ([EMAIL PROTECTED]) (gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) #1 Tue Jul 11 22:41:14 EDT 2006 Reporter: Marty Lamb Fix For: 1.1 Attachments: SftpFileObject.java Calling SftpFileObject.getOutputStream() returns a descendant of ByteArrayOutputStream; nothing is written to the remote sftp server until the OutputStream is closed. For large data transfers, this exhausts local resources. This is noted in the source for SftpFileObject: protected OutputStream doGetOutputStream(boolean bAppend) throws Exception { // TODO - Don't write the entire file into memory. Use the stream-based // methods on ChannelSftp once the work properly final ChannelSftp channel = fileSystem.getChannel(); return new SftpOutputStream(channel); } although it is not clear what once the[y] work properly is referring to. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-90) RandomAccessFile backed by a RandomAccessContent instance
[ https://issues.apache.org/jira/browse/VFS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-90. - Resolution: Fixed Added to the VFS sandbox. I slightly changed the read method, I think the (re)try stuff should be part of the application instead of VFS. A read len=0 might happen with virtually every read method ... even if unlikely. Thanks! Ciao, Mario RandomAccessFile backed by a RandomAccessContent instance - Key: VFS-90 URL: https://issues.apache.org/jira/browse/VFS-90 Project: Commons VFS Issue Type: New Feature Reporter: Elifarley Callado Coelho Assigned To: Mario Ivankovits Priority: Minor Fix For: 1.1 Attachments: RACRandomAccessFile.java.bz2, RACRandomAccessFile.java.bz2, src.zip Some existing libraries and applications rely on a RandomAccessFile instance to process its IO tasks. They could be benefited by an adapter class providing a RandomAccessFile view of an arbitrary RandomAccessContent. Example: a database server using a RandomAccessFile instance to access its data from a local file would automatically be able to access it from a remote resource accessed through HTTP. I have already created such a class. I'll try to add it to this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-91) Provide random access to gzip files.
[ https://issues.apache.org/jira/browse/VFS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482204 ] Mario Ivankovits commented on VFS-91: - I can't add code which depends on a non ASF licensed (or compatible) library and which is not available through a maven repository. Please consider providing this filesystem provider through an independent sourceforge project. Thanks! Ciao, Mario Provide random access to gzip files. Key: VFS-91 URL: https://issues.apache.org/jira/browse/VFS-91 Project: Commons VFS Issue Type: Improvement Reporter: Elifarley Callado Coelho Priority: Minor Fix For: later Attachments: gzip-rac-src-20061017.zip, gzip-random-access-content.patch, org-ecc-vfs.zip A local file provides random access to its contents. For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-91) Provide random access to gzip files.
[ https://issues.apache.org/jira/browse/VFS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-91. - Resolution: Won't Fix Won't Fix for now to decrease the work load ;-) Provide random access to gzip files. Key: VFS-91 URL: https://issues.apache.org/jira/browse/VFS-91 Project: Commons VFS Issue Type: Improvement Reporter: Elifarley Callado Coelho Priority: Minor Fix For: later Attachments: gzip-rac-src-20061017.zip, gzip-random-access-content.patch, org-ecc-vfs.zip A local file provides random access to its contents. For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-102) Remove idleClient if it's disconnected
[ https://issues.apache.org/jira/browse/VFS-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-102. -- Resolution: Fixed Fix Version/s: 1.1 Good catch. Applied. Thanks! Ciao, Mario Remove idleClient if it's disconnected -- Key: VFS-102 URL: https://issues.apache.org/jira/browse/VFS-102 Project: Commons VFS Issue Type: Improvement Affects Versions: later Reporter: Sergey Vladimirov Priority: Minor Fix For: 1.1 FtpFileSystem: public FtpClient getClient() throws FileSystemException { synchronized (idleClientSync) { if (idleClient == null || !idleClient.isConnected()) { //Remove idleClient if it's disconnected if (idleClient != null) { // !idleClient.isConnected() idleClient = null; } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-100) Improve dependencies in project.xml
[ https://issues.apache.org/jira/browse/VFS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-100. -- Resolution: Fixed Fix Version/s: 1.1 you've already applied it, no? So closing this JIRA. Thanks! Ciao, Mario Improve dependencies in project.xml --- Key: VFS-100 URL: https://issues.apache.org/jira/browse/VFS-100 Project: Commons VFS Issue Type: Improvement Reporter: Niall Pemberton Priority: Minor Fix For: 1.1 Attachments: vfs-project-xml.patch Attaching a patch for the project.xml for the following: 1) Remove the slide and jcifs dependencies which are in the vfs sandbox 2) Add optional properties 3) Add urls for dependencies -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-103) Add support for Local File System reserved directories
[ https://issues.apache.org/jira/browse/VFS-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-103. -- Resolution: Won't Fix Add support for Local File System reserved directories -- Key: VFS-103 URL: https://issues.apache.org/jira/browse/VFS-103 Project: Commons VFS Issue Type: New Feature Reporter: Mark Fortner Priority: Minor Attachments: RootFileFactory.java Mac OS X, and Windows has special purpose directories used to organizes specific types of files. In Mac OS X, these directories include Documents, Movies, Pictures, Music; Windows uses My Documents, My Pictures, My Videos and My Music. Provide a consistent approach for getting these directories either as a static factory method, or as individual methods. i.e. something along the lines of public static FileObject getRoot(int rootType) where rootType is a constant that defines which one of the directorires (specified above) that you want. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-101) Reduce number of createClient() calls
[ https://issues.apache.org/jira/browse/VFS-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-101. -- Resolution: Fixed Fix Version/s: 1.1 Applied. Thanks! Ciao, Mario Reduce number of createClient() calls - Key: VFS-101 URL: https://issues.apache.org/jira/browse/VFS-101 Project: Commons VFS Issue Type: Bug Affects Versions: later Reporter: Sergey Vladimirov Priority: Minor Fix For: 1.1 FTPClientWrapper: public boolean isConnected() throws FileSystemException { return ftpClient != null getFtpClient().isConnected(); } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-109) Ant tasks could be improved to support filesets
[ https://issues.apache.org/jira/browse/VFS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482211 ] Mario Ivankovits commented on VFS-109: -- CLA on file, thanks! Ant tasks could be improved to support filesets --- Key: VFS-109 URL: https://issues.apache.org/jira/browse/VFS-109 Project: Commons VFS Issue Type: Improvement Affects Versions: later Environment: Mac OS X, Linux Reporter: Ludovic Maître Assigned To: Mario Ivankovits Priority: Minor Fix For: later Attachments: commons-vfs-ant-1.0-SNAPSHOT-BUT-PERHAPS-BETTER-src.tar.bz2, commons-vfs-ant-1.0-SNAPSHOT-src.tar.bz2, commons-vfs-ant-1.0-SNAPSHOT-src.tar.bz2, README.txt, RELEASE_NOTES.txt The Commons-VFS Ant tasks could be improved to support filesets, or an object derived from filesets which support FileObjects instead of files. I've done a preliminary version of this. The content of the attached file contain a replacement package for the ant tasks, which extend them and add selectors, vfs:fileset and directory scanner for VFS. It is a functional, i use it for my deployment system. It use Ant 1.6.5 (and not 1.6.2). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VFS-109) Ant tasks could be improved to support filesets
[ https://issues.apache.org/jira/browse/VFS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482214 ] Mario Ivankovits commented on VFS-109: -- All files are required to have the ASF license header. There is a PurgeTask which states that the code is from Richard Dallaway and is under the LGPL. We can't commit this stuff with such a code. Sorry. Also there are tons of e.printStackTrace(), these should be logged using commons-logging or the ant logging facility. Since its a ant only project you can go the ant route if you would like to. Ant tasks could be improved to support filesets --- Key: VFS-109 URL: https://issues.apache.org/jira/browse/VFS-109 Project: Commons VFS Issue Type: Improvement Affects Versions: later Environment: Mac OS X, Linux Reporter: Ludovic Maître Assigned To: Mario Ivankovits Priority: Minor Fix For: later Attachments: commons-vfs-ant-1.0-SNAPSHOT-BUT-PERHAPS-BETTER-src.tar.bz2, commons-vfs-ant-1.0-SNAPSHOT-src.tar.bz2, commons-vfs-ant-1.0-SNAPSHOT-src.tar.bz2, README.txt, RELEASE_NOTES.txt The Commons-VFS Ant tasks could be improved to support filesets, or an object derived from filesets which support FileObjects instead of files. I've done a preliminary version of this. The content of the attached file contain a replacement package for the ant tasks, which extend them and add selectors, vfs:fileset and directory scanner for VFS. It is a functional, i use it for my deployment system. It use Ant 1.6.5 (and not 1.6.2). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-114) FtpFileObject lists children excessively using ON_RESOLVE cache strategy
[ https://issues.apache.org/jira/browse/VFS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-114. -- Resolution: Fixed Fix Version/s: 1.1 Good catch. Applied. Thanks! Ciao, Mario FtpFileObject lists children excessively using ON_RESOLVE cache strategy Key: VFS-114 URL: https://issues.apache.org/jira/browse/VFS-114 Project: Commons VFS Issue Type: Bug Affects Versions: 1.1 Environment: Mac OS X 10.4.8, Darwin 8.8.0; Java 1.5.0_06; Libraries: ant-1.6.2.jar, commons-net-1.4.1.jar, commons-logging-1.0.4.jar, commons-collections-3.1.jar, jcifs-0.8.3.jar, jakarta-slide-webdavlib-20050629.161100.jar, jdom-1.0.jar, commons-httpclient-2.0.2.jar, jsch-0.1.23.jar, xml-apis-1.0.b2.jar, oro-2.0.8.jar, maven-xdoc-plugin-1.9.2.jar, Reporter: K. Lo Shih Priority: Minor Fix For: 1.1 Attachments: VFS-114.patch When calling FileObject.getChildren() on a org.apache.commons.vfs.provider.ftp.FtpFileObject using the default ON_RESOLVE cache strategy, I would FtpClientWrapper.listFiles() to be called only once. Instead, because FileObject.refresh() is called once for itself and each of its parents for each of the children. For example, if there's a file structure like: pre ftp://ftp.example.com A/ B/ C/ 1 2 3 /pre and you list files for the URL ftp://ftp.example.com/A/B/C/;. Instead of calling listFiles() once on C, it calls listFiles() on each of A, B, and C for each of the children 1, 2 and 3, i.e. 9 times. I discovered this when listing a directory with 709 files--you can imagine my bewilderment at how long it took. I fixed this by reusing the FtpFileObject.inRefresh flag within AbstractFileObject.getChildren() to not refresh the listed directory when its children request a refresh. I've used this inRefresh incorrectly, I think. I should rather use a separate flag depth counter like FtpFileObject.refreshDepth, incremented upon entry into AbstractFileObject.getChildren() and decremented upon exit. This approach would fix the implementation for providers other than FTP as well. Anyways, here's my patch: Index: core/src/main/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java === --- core/src/main/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java (revision 513805) +++ core/src/main/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java (working copy) @@ -94,7 +94,12 @@ */ private FTPFile getChildFile(final String name, final boolean flush) throws IOException { -if (flush) +/* If we should flush cached children, clear our children map unless + * we're in the middle of a refresh in which case we've just recently + * refreshed our children. No need to do it again when our children are + * refresh()ed, calling getChildFile() for themselves from within + * getInfo(). See getChildren(). */ +if (flush !inRefresh) { children = null; } @@ -322,6 +327,28 @@ return null; } + +/** Returns the file's list of children. + * + * @return The list of children + * @throws FileSystemException If there was a problem listing children + * @seeAbstratFileObject#getChildren() + * @since 1.0 + */ +public FileObject[] getChildren() throws FileSystemException { +try { +/* Wrap our parent implementation, noting that we're refreshing so + * that we don't refresh() ourselves and each of our parents for + * each children. Note that refresh() will list children. Meaning, + * if if this file has C children, P parents, there will be (C * P) + * listings made with (C * (P + 1)) refreshes, when there should + * really only be 1 listing and C refreshes. */ +this.inRefresh = true; +return super.getChildren(); +} finally { +this.inRefresh = false; +} +} /** * Lists the children of the file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Resolved: (VFS-117) Add FileObject[] getFiles() from VFSClassLoader
[ https://issues.apache.org/jira/browse/VFS-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits resolved VFS-117. -- Resolution: Fixed Fix Version/s: 1.1 added public FileObject[] getFileObjects() Hope this makes it, please report back. Ciao, Mario Add FileObject[] getFiles() from VFSClassLoader --- Key: VFS-117 URL: https://issues.apache.org/jira/browse/VFS-117 Project: Commons VFS Issue Type: Wish Reporter: Michael Rimov Priority: Minor Fix For: 1.1 In walking through ClassLoaders in a system, it would be very useful to get the FileObjects that define a VFSClassLoader similar to how URLClassLoader allows retrieval of the URLs that make up the classloader. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Vote] Sponsoring Entity of RCF (was Re: [Proposal] RCF, a rich component library for JSF)
Matthias Wessendorf schrieb: +1 for MyFaces being the sponsoring entity for RCF +1 Ciao, Mario
[RESULT][VOTE] New Apache MyFaces Fusion Name
Hi! The vote for the new name for the Apache MyFaces Fusion name is finished now. The result: Apache MyFaces Orchestra 10 votes Apache MyFaces Aurora 2 votes Apache MyFaces Connections nothing Please find the voting thread here [1] From now on the new name is Apache MyFaces Orchestra. Thanks to everyone who participated in this process . and - also to everyone who did not, you didn't introduce the one-thousand-and-first name ;-) hehe - well - and thanks that Kleber didn't make it :-D Ciao, Mario [1] http://www.nabble.com/-VOTE--New-Apache-MyFaces-Fusion-Name-t3371648.html
Re: [jci] out of the sandbox
Hi! I had a quick look at the filesystem alteration monitor module - looks like could be useful component for people outside of JCI. Yea, in the long term we discussed to replace the VFS's one with this implementation, though, if it is its own component with an abstract FS implementation it would be fine too. commons-io might be a good place then. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[VFS] native local fs implementation - Google SoC 2007
Hi! Just as an idea for VFS: A native local filesystem implementation for Linux and Windows which *) allows to configure permissions *) improve performance by caching file stat calls etc If someone knows a student who is willing to do such a thing I'd mentor she/him. Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Proposal] RCF, a rich component library for JSF
Hi Martin! I've already mentioned that with this addition, I see Trinidad as a Top Level project rather than a sub-level project of MyFaces. What do you think about that? What about combining our efforts providing a modern component library? Creating a myfaces commons and a cleaned-up tomahawk 2.0 with trinidad as base could push our development strength, no? Ciao, Mario
Re: Client Side Validation i18n aware?
Hi Cagatay! Good catch, I was thinking about localization before but I left it for later for now. Because it seems like the server side converters like javax.faces.FloatConverter or javax.faces.DoubleConverter do not handle i18n too. I'm trying to make the client side validation be %100 compatible with the server side so that's why I leave it for later. Oh, I understand. Though, this brings up the question about their (the JSF converter) usefulness. Anyway, I mostly use the NumberConverter (sandbox) instead of Float and DoubleConv and there we have to deal with i18n then. See you then hehe :-) Ciao, Mario
Client Side Validation i18n aware?
Hi Cagatay! + var doubleRegExp = /^(\+|-)?\d*\.?\d*([eE]\d+)?[dD]?$/; I haven't had a look at all your validation code, though, do it deal with i18n? Means, the regexp above allows to have a . - I guess as fraction delimiter. But then, this depends on language specific settings. Can this work with your validator? Also, can it deal with the thousand's point? e.g. 10.000,27 is a valid number here. Ciao, Mario
[jira] Commented: (VFS-116) Add Write capability to RandomAccessContent for all providers
[ https://issues.apache.org/jira/browse/VFS-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479302 ] Mario Ivankovits commented on VFS-116: -- Hi Andrew, thanks for the work, but I really require this as svn diff, else its too hard to figure out what you changed and the chance to loose other code it too high. Please create a svn diff. --- Mario Add Write capability to RandomAccessContent for all providers - Key: VFS-116 URL: https://issues.apache.org/jira/browse/VFS-116 Project: Commons VFS Issue Type: Improvement Affects Versions: 1.0, 1.1 Environment: Java 1.5 / any os Reporter: Andrew Serff Attachments: AbstractRandomAccessStreamContent.java, FtpFileProvider.java, FtpRandomAccessContent.java, HttpRandomAccesContent.java, SftpFileProvider.java, SftpRandomAccessContent.java Writing to RandomAccessContent seems to only work for the File provider. Reading works for all it seems, just not writing. The main ones I'm worried about are ftp and sftp. Here is what I know: FtpRandomAccessContent and SftpRandomAccessContent both extend from AbstractRandomAccessStreamContent. (The Http one does too, but I'm not interested in that one right now.) AbstractRandomAccessStreamContent extends from RandomAccessContent which only exposes the read methods and throws UnsupportedOperationExceptions for all the write methods. If you just add the write methods to AbstractRandomAccessStreamContent (calling getDataOutputStream().write*(v)) and then add an abstract method getDataOutputStream() to it, the subclasses will need to implement that. You also need to add the RANDOM_ACCESS_WRITE Capability to the SFTP and FTP FileProviders. I have been trying to do this tonight but I'm not having much luck with getting anything to write with both FTP and SFTP. I'm unfamiliar with JSch and Commons FTP, so I might just be missing something. If anyone could help, I'd be glad to submit a fix for this Improvement issue. I will either attach my changed files or add some comments to this issue to show the changes I have made. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [POLL] Fusion Naming
Hi Manfred! Cool application! Thanks! Sad that there are so few votes yet... :-( Yeah, anyway, I'll close the vote today and will come up (as it looks like now) with the top three names. Ciao, Mario
Re: [POLL] Fusion Naming
Hi Jesse! will you provide the source for these apps? It is part of the examples module for Fusion (how I'll miss this name :-( ). So yes, everyone will have access to it :-) grats on a cool new way to vote... Thanks! Ciao, Mario
[RESULT][POLL] Fusion Naming
Hi! The result for this poll is We had 12 voters and they voted (where the number is the number of +1 votes for this name): Apache MyFaces Orchestra7 Apache MyFaces Aurora 6 Apache MyFaces Connections 4 Apache MyFaces Edge 3 Apache MyFaces Kleber 3 Apache MyFaces Salida 3 Apache MyFaces Sepia3 Apache MyFaces States 3 Apache MyFaces Bistro 2 Apache MyFaces Cement 2 Apache MyFaces Concerto 2 Apache MyFaces Memento 2 Apache MyFaces Mergence 2 Apache MyFaces Platypus 2 Apache MyFaces ease 2 Apache MyFaces Alta 1 Apache MyFaces Chasb1 Apache MyFaces Converse 1 Apache MyFaces Custos 1 Apache MyFaces Memini 1 Apache MyFaces Plaster 1 Apache MyFaces Rapid1 Apache MyFaces Rush 1 Apache MyFaces Spider 1 Apache MyFaces StateOrchestra 1 Apache MyFaces Sublime 1 Apache MyFaces Talk 1 Apache MyFaces Tenere 1 Apache MyFaces Transit 1 Apache MyFaces Accretion0 Apache MyFaces Brevi0 Apache MyFaces Coire0 Apache MyFaces Collective 0 Apache MyFaces Debate 0 Apache MyFaces Defender 0 Apache MyFaces Direct 0 Apache MyFaces Fellowship 0 Apache MyFaces Music0 Apache MyFaces Piletra 0 Apache MyFaces Pure 0 Apache MyFaces Repartee 0 Apache MyFaces Seamless 0 Apache MyFaces Simplex 0 Apache MyFaces Snug 0 Apache MyFaces StateConverse0 Based on this poll I'll start a vote with the top 3 names now. Thanks for taking the time to vote. BTW: The voting application used is part of the Fusion examples, maybe we can enhance it and regularly use it for our polls, if we add a notification mail to the ml we even can use it for our votes I think. Ciao, Mario
[VOTE] New Apache MyFaces Fusion Name
Hi! Based on the previous poll it should be possible now to vote on a new name. Please choose one of the three names (adding new ones can't be honored from now on). The one with the most votes should make it then. [ ] Apache MyFaces Orchestra [ ] Apache MyFaces Aurora [ ] Apache MyFaces Connections Thank you! Ciao, Mario
Re: [VOTE] New Apache MyFaces Fusion Name
[X] Apache MyFaces Orchestra [ ] Apache MyFaces Aurora [ ] Apache MyFaces Connections
Re: Tomahawk 1.1.5 branch created to eartly?
Hi! Depends whether we want the Tomahawk code to be pre-Fusion or not. Of course Fusion is a separate subproject, so it really only affects the (deleted) Sandbox components, right? Yes, Fusion affects the sandbox only (if at all). I think Fusion should not be the reason to hold back a Tomahawk release. --- Mario
[jira] Commented: (TOMAHAWK-915) Base default event used by submitOnEvent on enclosing component type
[ https://issues.apache.org/jira/browse/TOMAHAWK-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478299 ] Mario Ivankovits commented on TOMAHAWK-915: --- Thanks for fixing it! Base default event used by submitOnEvent on enclosing component type Key: TOMAHAWK-915 URL: https://issues.apache.org/jira/browse/TOMAHAWK-915 Project: MyFaces Tomahawk Issue Type: Improvement Components: submitOnEvent Affects Versions: 1.1.5-SNAPSHOT Reporter: Mike Kienenberger Priority: Minor Fix For: 1.1.6-SNAPSHOT One thing that I had issues with for submitOnEvent is that the default event is keyPress. I didn't realize that the default event wouldn't work for a selectOneUI. Let's add intelligent default event values. keyPress for a UIInput, change for a UISelectOne, and so on. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[POLL] Fusion Naming
Hi! Ok, I've setup a little application which should help finding a name out of the tons we have. For the next few days you can reach it at [1]. First you have to register, this works by simply clicking on Register and enter your e-mail address and name. You'll receive a URL which you have to click to login to the app. It's not high secure, though, should do the trick for now. You'll find the topic Apache MyFaces Fusion Naming where you'll be able to Vote or have a look at the others vote Vote details. Please place your vote (don't forget to press Save) You can change the vote at any time, thus, its not a real vote, just a method to help the community to find a name. Depending on the distance between the top names we will vote on max top 5 names on the MyFaces-dev mailinglist afterwards. I am sure there are tons of bugs in this application ;-) nothing serious I hope. Also I hope derby won't die. However, nothing will be lost, I should get a mail about each vote and I should be able to recreate the data based on them if the worst possible case come to reality. BTW: You are free to play a little bit with the app ... create a new topic if you would like to. Have fun! Ciao, Mario [1] http://l3x.net:9090/myfaces-fusion-examples-project
Re: [POLL] Fusion Naming
btw you have to choose exactly 5 names for a valid vote. You'll receive a email if everything vent fine. Else a message will be shown, though at the end of the page if you voted too much/less names. The UI can be enhanced ;-) Mario -Original Message- From: Mario Ivankovits [EMAIL PROTECTED] Date: Sunday, Mär 4, 2007 6:13 pm Subject: [POLL] Fusion Naming To: Reply-MyFaces Development dev@myfaces.apache.orgTo: MyFaces Development dev@myfaces.apache.org Hi! Ok, I've setup a little application which should help finding a name out of the tons we have. For the next few days you can reach it at [1]. First you have to register, this works by simply clicking on Register and enter your e-mail address and name. You'll receive a URL which you have to click to login to the app. It's not high secure, though, should do the trick for now. You'll find the topic Apache MyFaces Fusion Naming where you'll be able to Vote or have a look at the others vote Vote details. Please place your vote (don't forget to press Save) You can change the vote at any time, thus, its not a real vote, just a method to help the community to find a name. Depending on the distance between the top names we will vote on max top 5 names on the MyFaces-dev mailinglist afterwards. I am sure there are tons of bugs in this application ;-) nothing serious I hope. Also I hope derby won't die. However, nothing will be lost, I should get a mail about each vote and I should be able to recreate the data based on them if the worst possible case come to reality. BTW: You are free to play a little bit with the app ... create a new topic if you would like to. Have fun! Ciao, Mario [1] http://l3x.net:9090/myfaces-fusion-examples-project
MyFaces Fusion Name Poll App
Hi! Using Apache MyFaces Fusion I've created a new example app: Ballot A tool to help make what I call dynamic votes. BTW: Even if there would have such a tool already there, I wanted to create another example for fusion. It is not meant to replace the voting on the ML, its just to distill those names worth to vote for. The dynamic part means, you can change your mind as long as the poll is open. You'll always be able to see the current state about each name. After registering you'll receive an url which allows you to cast a vote ... and change it again. Afterwards I'll take the top (say 5) names and we make a normal vote on the ML on them. No to the poll rules. I plan that you will be able to make 5 decisions per name, they are: -2 -1 0 1 2 What do you think, is this suitable? Ciao, Mario
Re: MyFaces Fusion Name Poll App
Btw, this poll will not be anonymous, so that everyone can be sure that I don't manipulate the data. A (to be create) page will allow you to have a look at the vote of each voter. If you don't mind Hi! Using Apache MyFaces Fusion I've created a new example app: Ballot A tool to help make what I call dynamic votes. BTW: Even if there would have such a tool already there, I wanted to create another example for fusion. It is not meant to replace the voting on the ML, its just to distill those names worth to vote for. The dynamic part means, you can change your mind as long as the poll is open. You'll always be able to see the current state about each name. After registering you'll receive an url which allows you to cast a vote ... and change it again. Afterwards I'll take the top (say 5) names and we make a normal vote on the ML on them. No to the poll rules. I plan that you will be able to make 5 decisions per name, they are: -2 -1 0 1 2 What do you think, is this suitable? Ciao, Mario
Re: MyFaces Fusion Name Poll App
Another question is, if I should allow you to vote for each name, or if I should force you to cast your vote for e.g. 5 names only. Then changing the available vote selections should be 0 1 2 3 4 5, no? Hi! Using Apache MyFaces Fusion I've created a new example app: Ballot A tool to help make what I call dynamic votes. BTW: Even if there would have such a tool already there, I wanted to create another example for fusion. It is not meant to replace the voting on the ML, its just to distill those names worth to vote for. The dynamic part means, you can change your mind as long as the poll is open. You'll always be able to see the current state about each name. After registering you'll receive an url which allows you to cast a vote ... and change it again. Afterwards I'll take the top (say 5) names and we make a normal vote on the ML on them. No to the poll rules. I plan that you will be able to make 5 decisions per name, they are: -2 -1 0 1 2 What do you think, is this suitable? Ciao, Mario