You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/07/15 20:51:16 UTC

DO NOT REPLY [Bug 35759] New: - NPE on InsertAsset from bitflux

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35759>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35759

           Summary: NPE on InsertAsset from bitflux
           Product: Lenya
           Version: Trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bitflux Integration
        AssignedTo: dev@lenya.apache.org
        ReportedBy: dhc4z@virginia.edu


weird problem, seems to only happen when word documents are in the asset
library.  Click on the scroll from bitflux, add a word doc as an asset, get a
npe error.  The word document is actually uploded, just can't be displayed (you
can see that it has been added by looking at the asset tab).

If you delete the word document, add a pdf document via the asset tab, then try
to add an asset again in bxe, no error.  InsertAsset Usecase doesn't seem to
like word documents.

The problem goes away when I comment out this condition in loadResources method
in InsertAsset class:
                if (resources[i].getMimeType().startsWith(mimeTypePrefix)) {

I am not really sure what this is checking for.  I have debugged with a few
different types of assets (doc, pdf, jpg) and the string mimeTypePrefix is
always "".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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