You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2010/02/23 22:41:28 UTC

[jira] Resolved: (CASSANDRA-794) path handling is unix-dependent

     [ https://issues.apache.org/jira/browse/CASSANDRA-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-794.
--------------------------------------

    Resolution: Won't Fix

> path handling is unix-dependent
> -------------------------------
>
>                 Key: CASSANDRA-794
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-794
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.6
>
>
> ruslan usifov reports on -user:
> i have problem with StreamInitiateVerbHandler, the problem in PendingFile.getTargetFile, namely difference in slashes on win and unix, so i change PendingFile.java like this:
>     public PendingFile(String targetFile, long expectedBytes, String table)
>     {
>         targetFile_ = targetFile.replaceAll("(?:\\\\|/)+", "/");
>         expectedBytes_ = expectedBytes;
>         table_ = table;
>         ptr_ = 0;
>     }
>     public void setTargetFile(String file)
>     {
>         targetFile_ = file.replaceAll("(?:\\\\|/)+", "/");;
>     }
> What we really want though is something that uses the File apis to be os-independent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.