[ 
http://jira.nuxeo.org/browse/NXP-2392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thierry Martins resolved NXP-2392.
----------------------------------

    Resolution: Fixed

Refactoring of "handle" method:
- only save once the document model
- only set once the properties for the uploaded file (filename and content)
- use a persistent blob to avoid exhausting the binary source (uploaded file)

> optimize UploadFileRestlet by persisting the blob instead of saving it twice
> ----------------------------------------------------------------------------
>
>                 Key: NXP-2392
>                 URL: http://jira.nuxeo.org/browse/NXP-2392
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>          Components: Desktop Integration, Web UI
>    Affects Versions: 5.1.4
>            Reporter: Thierry Martins
>            Assignee: Thierry Martins
>             Fix For: 5.1.5
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> Instead of saving the document twice (once before mimetype sniffing and once 
> after) to avoid stream exhaustion problems, call the Blob.persist() once at 
> the beginning.

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

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to