[
https://issues.apache.org/jira/browse/CASSANDRA-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833962#action_12833962
]
Jonathan Ellis commented on CASSANDRA-794:
------------------------------------------
we could mandate that pathnames over the wire will use unix format, and convert
to native on the other side. ugly, but harmless.
I'll leave this open for a while and if someone wants to contribute a patch,
great, otherwise let's close as wontfix.
> 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.