[jira] [Commented] (TEXT-94) Add Damerau option to Levenshtein edit distance
[ https://issues.apache.org/jira/browse/TEXT-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16124899#comment-16124899 ] Markus Fischer commented on TEXT-94: For a concrete implementation see also: [http://blog.lolyco.com/sean/damerau-levenshtein/|http://blog.lolyco.com/sean/damerau-levenshtein/]. > Add Damerau option to Levenshtein edit distance > --- > > Key: TEXT-94 > URL: https://issues.apache.org/jira/browse/TEXT-94 > Project: Commons Text > Issue Type: Improvement >Affects Versions: 1.1 >Reporter: Ulf Dittmer >Priority: Minor > > Please add support for transpositions of two characters as defined by the > Levenshtein-Damerau edit distance: > https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance > It's not hard to implement, and some code for it can be found as part of > https://issues.apache.org/jira/browse/LUCENE-3662 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[GitHub] commons-lang issue #282: SwappedPair constructed as Pair.of(rhs,lhs)
Github user namannigam commented on the issue: https://github.com/apache/commons-lang/pull/282 @kinow @garydgregory Sure would try to come back soon with a unit test for the use-case. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Updated] (IO-547) Nullpointer Exception in FileSystemUtils.freeSpaceWindows
[ https://issues.apache.org/jira/browse/IO-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikhil Shinde updated IO-547: - Description: In FileSystemutils.freeSpaceWindows(String path,long timeout) , path cannot be null. In this function for following assignment path = FilenameUtils.normalize(path,bool), path is assigned null value when (1) path argument is null. (2) path argument is illegal/invalid path as per windows system. {code:java} public class FileSystemutilTest { public static void main(String args[]){ FileSystemUtils fsuobj = new FileSystemUtils(); String path = ":\\Users\\nikhil\\Desktop\\tests"; \* Invalid path, causes Nullpointer Exception*\ try { long space = fsuobj.freeSpace(path); } catch (IOException e) { e.printStackTrace(); } } } {code} For above test case, as path is illegal for windows system, Nullpointer exception occurs. A check for validity of path as per windows file system, will resolve this bug. was: In FileSystemutils.freeSpaceWindows(String path,long timeout) , path cannot be null. In this function for following assignment path = FilenameUtils.normalize(path,bool), path is assigned null value when (1) path argument is null. (2) path argument is illegal/invalid path as per windows system. {code:java} public class FileSystemutilTest { public static void main(String args[]){ FileSystemUtils fsuobj = new FileSystemUtils(); String path = ":\\Users\\nikhil\\Desktop\\tests"; \* Invalid path, causes Nullpointer Exception*\ try { long space = obj.freeSpace(path); } catch (IOException e) { e.printStackTrace(); } } } {code} For above test case, as path is illegal for windows system, Nullpointer exception occurs. A check for validity of path as per windows file system, will resolve this bug. > Nullpointer Exception in FileSystemUtils.freeSpaceWindows > -- > > Key: IO-547 > URL: https://issues.apache.org/jira/browse/IO-547 > Project: Commons IO > Issue Type: Bug >Affects Versions: 2.5 > Environment: Windows OS >Reporter: Nikhil Shinde >Priority: Minor > Labels: beginner > > In FileSystemutils.freeSpaceWindows(String path,long timeout) , path cannot > be null. In this function for following assignment > path = FilenameUtils.normalize(path,bool), path is assigned null > value when > (1) path argument is null. > (2) path argument is illegal/invalid path as per windows system. > {code:java} > public class FileSystemutilTest { > public static void main(String args[]){ > FileSystemUtils fsuobj = new FileSystemUtils(); > String path = ":\\Users\\nikhil\\Desktop\\tests"; \* Invalid > path, causes Nullpointer Exception*\ > try { > long space = fsuobj.freeSpace(path); > } catch (IOException e) { > e.printStackTrace(); > } > } > } > {code} > For above test case, as path is illegal for windows system, Nullpointer > exception occurs. A check for validity of path as per windows file system, > will resolve this bug. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (IO-547) Nullpointer Exception in FileSystemUtils.freeSpaceWindows
Nikhil Shinde created IO-547: Summary: Nullpointer Exception in FileSystemUtils.freeSpaceWindows Key: IO-547 URL: https://issues.apache.org/jira/browse/IO-547 Project: Commons IO Issue Type: Bug Affects Versions: 2.5 Environment: Windows OS Reporter: Nikhil Shinde Priority: Minor In FileSystemutils.freeSpaceWindows(String path,long timeout) , path cannot be null. In this function for following assignment path = FilenameUtils.normalize(path,bool), path is assigned null value when (1) path argument is null. (2) path argument is illegal/invalid path as per windows system. {code:java} public class FileSystemutilTest { public static void main(String args[]){ FileSystemUtils fsuobj = new FileSystemUtils(); String path = ":\\Users\\nikhil\\Desktop\\tests"; \* Invalid path, causes Nullpointer Exception*\ try { long space = obj.freeSpace(path); } catch (IOException e) { e.printStackTrace(); } } } {code} For above test case, as path is illegal for windows system, Nullpointer exception occurs. A check for validity of path as per windows file system, will resolve this bug. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (TEXT-94) Add Damerau option to Levenshtein edit distance
[ https://issues.apache.org/jira/browse/TEXT-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16125006#comment-16125006 ] Rob Tompkins commented on TEXT-94: -- Gotcha. Thanks. > Add Damerau option to Levenshtein edit distance > --- > > Key: TEXT-94 > URL: https://issues.apache.org/jira/browse/TEXT-94 > Project: Commons Text > Issue Type: Improvement >Affects Versions: 1.1 >Reporter: Ulf Dittmer >Priority: Minor > > Please add support for transpositions of two characters as defined by the > Levenshtein-Damerau edit distance: > https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance > It's not hard to implement, and some code for it can be found as part of > https://issues.apache.org/jira/browse/LUCENE-3662 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (TEXT-94) Add Damerau option to Levenshtein edit distance
[ https://issues.apache.org/jira/browse/TEXT-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Tompkins updated TEXT-94: - Assignee: Rob Tompkins > Add Damerau option to Levenshtein edit distance > --- > > Key: TEXT-94 > URL: https://issues.apache.org/jira/browse/TEXT-94 > Project: Commons Text > Issue Type: Improvement >Affects Versions: 1.1 >Reporter: Ulf Dittmer >Assignee: Rob Tompkins >Priority: Minor > > Please add support for transpositions of two characters as defined by the > Levenshtein-Damerau edit distance: > https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance > It's not hard to implement, and some code for it can be found as part of > https://issues.apache.org/jira/browse/LUCENE-3662 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (VFS-642) Upgrade to jcifs 1.3.17
Pascal Schumacher created VFS-642: - Summary: Upgrade to jcifs 1.3.17 Key: VFS-642 URL: https://issues.apache.org/jira/browse/VFS-642 Project: Commons VFS Issue Type: Task Reporter: Pascal Schumacher https://github.com/apache/commons-vfs/pull/18 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (LANG-1349) EqualsBuilder#isRegistered: swappedPair construction bug
Pascal Schumacher created LANG-1349: --- Summary: EqualsBuilder#isRegistered: swappedPair construction bug Key: LANG-1349 URL: https://issues.apache.org/jira/browse/LANG-1349 Project: Commons Lang Issue Type: Bug Components: lang.builder.* Affects Versions: 3.6 Reporter: Pascal Schumacher https://stackoverflow.com/questions/45603317/org-apache-commons-lang3-builder-equalsbuilder https://github.com/apache/commons-lang/pull/282 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[GitHub] commons-lang issue #282: SwappedPair constructed as Pair.of(rhs,lhs)
Github user PascalSchumacher commented on the issue: https://github.com/apache/commons-lang/pull/282 created https://issues.apache.org/jira/browse/LANG-1349 to track this --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Updated] (LANG-1349) EqualsBuilder#isRegistered: swappedPair construction bug
[ https://issues.apache.org/jira/browse/LANG-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1349: Description: See https://stackoverflow.com/questions/45603317/org-apache-commons-lang3-builder-equalsbuilder and https://github.com/apache/commons-lang/pull/282 for details. was: https://stackoverflow.com/questions/45603317/org-apache-commons-lang3-builder-equalsbuilder https://github.com/apache/commons-lang/pull/282 > EqualsBuilder#isRegistered: swappedPair construction bug > > > Key: LANG-1349 > URL: https://issues.apache.org/jira/browse/LANG-1349 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* >Affects Versions: 3.6 >Reporter: Pascal Schumacher > > See > https://stackoverflow.com/questions/45603317/org-apache-commons-lang3-builder-equalsbuilder > and > https://github.com/apache/commons-lang/pull/282 > for details. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (LANG-1349) EqualsBuilder#isRegistered: swappedPair construction bug
[ https://issues.apache.org/jira/browse/LANG-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16124874#comment-16124874 ] ASF GitHub Bot commented on LANG-1349: -- Github user PascalSchumacher commented on the issue: https://github.com/apache/commons-lang/pull/282 created https://issues.apache.org/jira/browse/LANG-1349 to track this > EqualsBuilder#isRegistered: swappedPair construction bug > > > Key: LANG-1349 > URL: https://issues.apache.org/jira/browse/LANG-1349 > Project: Commons Lang > Issue Type: Bug > Components: lang.builder.* >Affects Versions: 3.6 >Reporter: Pascal Schumacher > > See > https://stackoverflow.com/questions/45603317/org-apache-commons-lang3-builder-equalsbuilder > and > https://github.com/apache/commons-lang/pull/282 > for details. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Resolved] (VALIDATOR-428) Update commons digester to 2.1
[ https://issues.apache.org/jira/browse/VALIDATOR-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher resolved VALIDATOR-428. - Resolution: Fixed Assignee: Pascal Schumacher Fix Version/s: 1.7 > Update commons digester to 2.1 > -- > > Key: VALIDATOR-428 > URL: https://issues.apache.org/jira/browse/VALIDATOR-428 > Project: Commons Validator > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 1.7 > > > https://github.com/apache/commons-validator/pull/8 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (IO-547) Nullpointer Exception in FileSystemUtils.freeSpaceWindows
[ https://issues.apache.org/jira/browse/IO-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16125020#comment-16125020 ] Gary Gregory commented on IO-547: - What would you have happen on illegal input? An IllegalArgumentException? > Nullpointer Exception in FileSystemUtils.freeSpaceWindows > -- > > Key: IO-547 > URL: https://issues.apache.org/jira/browse/IO-547 > Project: Commons IO > Issue Type: Bug >Affects Versions: 2.5 > Environment: Windows OS >Reporter: Nikhil Shinde >Priority: Minor > Labels: beginner > > In FileSystemutils.freeSpaceWindows(String path,long timeout) , path cannot > be null. In this function for following assignment > path = FilenameUtils.normalize(path,bool), path is assigned null > value when > (1) path argument is null. > (2) path argument is illegal/invalid path as per windows system. > {code:java} > public class FileSystemutilTest { > public static void main(String args[]){ > FileSystemUtils fsuobj = new FileSystemUtils(); > String path = ":\\Users\\nikhil\\Desktop\\tests"; \* Invalid > path, causes Nullpointer Exception*\ > try { > long space = fsuobj.freeSpace(path); > } catch (IOException e) { > e.printStackTrace(); > } > } > } > {code} > For above test case, as path is illegal for windows system, Nullpointer > exception occurs. A check for validity of path as per windows file system, > will resolve this bug. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Resolved] (VFS-642) Upgrade to jcifs 1.3.17
[ https://issues.apache.org/jira/browse/VFS-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher resolved VFS-642. --- Resolution: Fixed Assignee: Pascal Schumacher Fix Version/s: 2.2 > Upgrade to jcifs 1.3.17 > --- > > Key: VFS-642 > URL: https://issues.apache.org/jira/browse/VFS-642 > Project: Commons VFS > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 2.2 > > > https://github.com/apache/commons-vfs/pull/18 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (VALIDATOR-428) Update commons digester to 2.1
Pascal Schumacher created VALIDATOR-428: --- Summary: Update commons digester to 2.1 Key: VALIDATOR-428 URL: https://issues.apache.org/jira/browse/VALIDATOR-428 Project: Commons Validator Issue Type: Task Reporter: Pascal Schumacher https://github.com/apache/commons-validator/pull/8 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (VFS-641) https.test.GetContentInfoFunctionalTest fails on travis-ci with java 8
Pascal Schumacher created VFS-641: - Summary: https.test.GetContentInfoFunctionalTest fails on travis-ci with java 8 Key: VFS-641 URL: https://issues.apache.org/jira/browse/VFS-641 Project: Commons VFS Issue Type: Test Reporter: Pascal Schumacher Test works on java 7, but fails on java 8 with: {code} Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE! - in org.apache.commons.vfs2.provider.https.test.GetContentInfoFunctionalTest testGetContentInfo(org.apache.commons.vfs2.provider.https.test.GetContentInfoFunctionalTest) Time elapsed: 0.002 sec <<< ERROR! java.lang.IllegalStateException: Connection factory has been shutdown. at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.commons.vfs2.provider.http.HttpFileObject.getHeadMethod(HttpFileObject.java:240) at org.apache.commons.vfs2.provider.http.HttpFileContentInfoFactory.create(HttpFileContentInfoFactory.java:47) at org.apache.commons.vfs2.provider.DefaultFileContent.getContentInfo(DefaultFileContent.java:806) at org.apache.commons.vfs2.provider.https.test.GetContentInfoFunctionalTest.testGetContentInfo(GetContentInfoFunctionalTest.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) {code} https://travis-ci.org/apache/commons-vfs/jobs/263594185 The exception occurs when "content.getContentInfo();" is called. The test works for me locally (on windows), so I can not reproduce. -- This message was sent by Atlassian JIRA (v6.4.14#64029)