[ 
https://issues.apache.org/jira/browse/OAK-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495263#comment-13495263
 ] 

Thomas Mueller commented on OAK-433:
------------------------------------

I'm not strictly against changing the current behavior, but I would like to 
better understand how 'bad' the situation is. As far as I see, the only place 
where it is stored is within a blob id, which is stored as ":blobId:". That 
seems fine to me. Empty strings are also encoded as empty strings, so I think 
it's OK if empty blobs are encoded like this. But maybe there are more places 
where it might cause confusion?
                
> MicroKernel.write() returns empty string for empty stream
> ---------------------------------------------------------
>
>                 Key: OAK-433
>                 URL: https://issues.apache.org/jira/browse/OAK-433
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mk
>            Reporter: Michael Dürig
>            Priority: Minor
>
> Calling {{MicroKernel.write}} with an empty stream as argument, will return 
> an empty string as blobId. While this is not strictly a bug and retrieving 
> the blob by that identifier works, I think it is confusing and should be 
> reconsidered. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to