james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Burrell Donkin" <robertburrelldon...@gmail.com>
Subject Re: [imap] unit test failure under Java 1.4 / Win32 because of path length issues
Date Fri, 11 Jul 2008 16:32:21 GMT
On 7/11/08, Stefano Bagnara <apache@bago.org> wrote:
> As I reported some weeks ago I found that many IMAP/SUBSCRIBER tests was
> failing in my environment when I used Java 1.4 while they passed under
> java 5+.
>
> I debugged this and found that the
> FileUserMetaDataRepository.fileSystemSafeName when called with long
> names (e.g:
> org.apache.james.imapserver.processor.imap4rev1.SUBSCRIPTIONS) resulted
> in very long file names (e.g:
> pgaashaahgaaocaabgaaqhaabgaadgaaigaafgaaocaakgaabgaangaafgaathaaocaajgaangaabgaaqhaathaafgaashaawhaafgaashaaocaaqhaashaapgaadgaafgaathaathaapgaashaaocaajgaangaabgaaqhaaudaashaafgaawhaardaaocaatfaavfaaceaatfaadeaasfaajeaaqfaaufaajeaapeaaoeaatfaa.ser
> )
>
> Adding this code at the beginning of the method made the test pass:
> -------------
>          int dotPos = value.lastIndexOf(".");
>          if (false && dotPos > 0) {
>              value = value.substring(dotPos);
>          }
> ------------
>
> Of course this may not be appropriate (I don't know what keys are used
> there): Robert, have you any suggestion for this?

 windows?
Robert


>
> Stefano
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message