Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 91556 invoked from network); 24 Nov 2008 11:03:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2008 11:03:15 -0000 Received: (qmail 19186 invoked by uid 500); 24 Nov 2008 11:03:16 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 19054 invoked by uid 500); 24 Nov 2008 11:03:16 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 18907 invoked by uid 99); 24 Nov 2008 11:03:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 03:03:15 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 11:01:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73699234C2A2 for ; Mon, 24 Nov 2008 03:02:44 -0800 (PST) Message-ID: <286980344.1227524564471.JavaMail.jira@brutus> Date: Mon, 24 Nov 2008 03:02:44 -0800 (PST) From: "Marcel Reutegger (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1468) FSDirectory.list() is inconsistent In-Reply-To: <478681483.1227524564319.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated LUCENE-1468: ------------------------------------- Attachment: DirectoryTest.java Test cases to illustrate the issue. > FSDirectory.list() is inconsistent > ---------------------------------- > > Key: LUCENE-1468 > URL: https://issues.apache.org/jira/browse/LUCENE-1468 > Project: Lucene - Java > Issue Type: Bug > Components: Store > Affects Versions: 2.1, 2.2, 2.3, 2.3.1, 2.3.2, 2.4 > Reporter: Marcel Reutegger > Priority: Minor > Attachments: DirectoryTest.java > > > LUCENE-638 added a check to the FSDirectory.list() method to only return files that are Lucene related. I think this change made the FSDirectory implementation inconsistent with all other methods in Directory. E.g. you can create a file with an arbitrary name using FSDirectory, fileExists() will report that it is there, deleteFile() will remove it, but the array returned by list() will not contain the file. > The actual issue that was reported in LUCENE-638 was about sub directories. Those should clearly not be listed, but IMO it is not the responsibility of a Directory implementation to decide what kind of files can be created or listed. The Directory class is an abstraction of a directory and it should't to more than that. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org