[jsword-devel] [JIRA] Commented: (JS-130) IndexDownloader does not set IndexStatus after downloading an index

DM Smith (JIRA) jira at crosswire.org
Wed Nov 24 20:31:57 MST 2010


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

DM Smith commented on JS-130:
-----------------------------

I used the following pattern that was in the create index code:
        IndexStatus finalStatus = IndexStatus.UNDONE;
        try {
...
            book.setIndexStatus(IndexStatus.CREATING);
            idxman.installDownloadedIndex(book, tempDownload);
            finalStatus = IndexStatus.DONE;
        } finally {
            book.setIndexStatus(finalStatus);


> IndexDownloader does not set IndexStatus after downloading an index
> -------------------------------------------------------------------
>
>                 Key: JS-130
>                 URL: http://www.crosswire.org/bugs/browse/JS-130
>             Project: JSword
>          Issue Type: Bug
>          Components: o.c.jsword.util
>            Reporter: Martin Denham
>            Assignee: DM Smith
>
> I found it necessary to set the index status after downloading an index in IndexDownloader.downloadIndex(..)
> Just before the finally I added
>             book.deactivate(null);
>             book.activate(null);
>             book.setIndexStatus(IndexStatus.DONE);
> I think the deactivation and reactivation is probably unnecessary but believe the index status needs to be set.  In other words my code started working after I added setIndexStatus but not before.

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

        



More information about the jsword-devel mailing list