GitHub user hgadre opened a pull request:

    https://github.com/apache/lucene-solr/pull/62

    [SOLR-9242] Fix unit test failure on Windows platform.

    The root cause of the failure is the usage of URI::getPath() method in the 
backup/restore functionality (e.g. in BackupManager::downloadFromZK OR in the 
OverseerCollectionMessageHandler::processBackupAction methods). On the Windows 
platform, usage of URI.getPath() returns an invalid path string (e.g.  URI 
file:///C:/lucene-solr/solr
    returns /C:/lucene-solr/solr as the result of getPath() method).
    
    Refer to following discussion for more details,
    http://stackoverflow.com/questions/9834776/java-nio-file-path-issue
    
    Since the caller may have used this method to generate the string 
representation for the pathComponents, we implement a work-around specifically 
for Windows platform to remove the leading '/' character.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hgadre/lucene-solr SOLR-9242_fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/62.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #62
    
----

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to