You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/07/14 06:46:32 UTC

[jira] Updated: (TRANSACTION-1) [transaction] FileResourceManager fails on Xids because of toString() usage for directory names

     [ http://issues.apache.org/jira/browse/TRANSACTION-1?page=all ]

Henri Yandell updated TRANSACTION-1:
------------------------------------

    Bugzilla Id:   (was: 37379)
    Fix Version: 1.2

> [transaction] FileResourceManager fails on Xids because of toString() usage for directory names
> -----------------------------------------------------------------------------------------------
>
>          Key: TRANSACTION-1
>          URL: http://issues.apache.org/jira/browse/TRANSACTION-1
>      Project: Commons Transaction
>         Type: Bug

>     Versions: 1.1
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Jörg Heinicke
>      Fix For: 1.2
>  Attachments: FileResourceManager.java.patch, FileResourceManager.java.patch, FileResourceManager.patch.txt
>
> As mentioned at
> http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=113101671215483&w=4 the
> FileResourceManager has a limitation due to the usage of toString() on the
> transaction IDs used for the directories:
>   String baseDir = workDir + "/" + txId;
>   String changeDir = baseDir + "/" + WORK_CHANGE_DIR;
>   new File(changeDir).mkdirs();
> In some environments you don't have influence on the created IDs like in JTA.
> The FileResourceManager fails on the then wrongly named directories. Therefore I
> introduced a getTransactionBaseDir(txId). The algorithm for it is quite easy and
> more or less copied from generatedUniqueTxId(). Don't know if it is good or if
> it works in every case, maybe a more solid algorithm might be needed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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