[jsword-devel] [JIRA] Commented: (JS-208) Deleting WelBeiblNet deletes all installed bibles

Martin Denham (JIRA) jira at crosswire.org
Sun Feb 19 02:46:17 MST 2012

    [ http://www.crosswire.org/bugs/browse/JS-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23473#comment-23473 ] 

Martin Denham commented on JS-208:

The problematic truncation may be in SwordBookMetaData.setLibrary in which everything beyond the last / is ignored:
   datapath = datapath.substring(0, lastSlash);
I suppose with some module types that would be correct, but I don't know which module types use this piece of code.
Also there seems no problem until a delete is requested so I wonder why there is no problem when installing modules.

> Deleting WelBeiblNet deletes all installed bibles
> -------------------------------------------------
>                 Key: JS-208
>                 URL: http://www.crosswire.org/bugs/browse/JS-208
>             Project: JSword
>          Issue Type: Bug
>          Components: o.c.jsword.book.sword
>         Environment: Windows, Android
>            Reporter: Martin Denham
>            Assignee: DM Smith
> I installed WelBeiblNet this morning and then deleted it using the standard front end delete method.  However this deleted the ztext directory, removing all installed bibles.
> It seems the cause was that the DataPath entry in the .conf file did not end in a /
> I tested on Bible Desktop and And Bible.
> It would be great to get a fix for this that I could apply locally - I am not using the current tip.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jsword-devel mailing list