Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 776B818144 for ; Wed, 8 Jul 2015 06:27:05 +0000 (UTC) Received: (qmail 20882 invoked by uid 500); 8 Jul 2015 06:27:05 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 20849 invoked by uid 500); 8 Jul 2015 06:27:05 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 20823 invoked by uid 99); 8 Jul 2015 06:27:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 06:27:05 +0000 Date: Wed, 8 Jul 2015 06:27:05 +0000 (UTC) From: "Niclas Hedhman (JIRA)" To: dev@zest.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZEST-41) FileEntityStore doesn't work on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZEST-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618054#comment-14618054 ] Niclas Hedhman commented on ZEST-41: ------------------------------------ The following implementation has been done and tested. I seeking feedback to whether it makes sense or not; private String replaceInvalidChars( String identity ) { StringBuilder b = new StringBuilder( identity.length() + 30 ); for( int i = 0; i < identity.length(); i++ ) { char ch = identity.charAt( i ); if( ( ch >= 'a' && ch <= 'z' ) || ( ch >= 'A' && ch <= 'Z' ) || ( ch >= '0' && ch <= '9' ) || ch == '_' || ch == '.' || ch == '-' ) { b.append( ch ); } else { int value = (int) ch; b.append( '~' ); b.append( toHex( value ) ); } } return b.toString(); } > FileEntityStore doesn't work on Windows > --------------------------------------- > > Key: ZEST-41 > URL: https://issues.apache.org/jira/browse/ZEST-41 > Project: Zest > Issue Type: Bug > Reporter: Niclas Hedhman > Assignee: Niclas Hedhman > > The FileEntityStore has a bug in that it doesn't replace/escape invalid filesystem characters from the Identity. > And for instance the Scheduler library uses colon, which works fine on Linux but fails (silently!!) on Windows. -- This message was sent by Atlassian JIRA (v6.3.4#6332)