Issue with ReactiveMongo 'serve' method
Closed this issue · 6 comments
I have a strange issue with ReactiveMongo plugin(0.10.2), used to store and serve videos using MongoDB GridFS. I could store the video files from latest andriod(.mp4) and iphone(.mov) in reactive manner with help of gridFsBodyParser. But when I try to stream the file using serve method, the file is returned empty. This issue happens only for the videos taken from Android Phones or iPhone. If I upload other videos(not taken by mobile phone), every think works fine.
There is no problem in storing the videos, because I could download the videos from MongoDB by using salat plugin from another application, but the ReactiveMongo plugin failed to serve the videos taken from mobile phones(android and iphone). The issue might be in enumerate method call in serve method, but I dont know, exactly where and what the issue is.
Could any one, help me on solving this issue?
Were those files stored with another driver?
Could you print the metadata of one problematic file (using BSONDocument.pretty
)?
val gfs = ...
gfs.files[BSONCollection].find(BSONDocument(/*your query to find one problematic doc*/)).one.map { doc =>
val str = doc.map(BSONDocument.pretty(_)).getOrElse("not found")
println(str)
}
Hi sgodbillon,
Thanks for your reply i have posted the metadata please help me in solving this issue.
{
_id: BSONObjectID("538337202a00002a007fc391"),
filename: BSONString(MOV_0347.mp4),
chunkSize: BSONInteger(262144),
length: BSONInteger(65116793),
uploadDate: BSONDateTime(1401108337323),
contentType: BSONString(video/mp4)
}
Thank You
Karthik
I am having this issue
Do you have any more input on this, like a stacktrace or an error? The structure seems good.
I don't get any stacktrace. The serve method simply returns empty file.
Closing it for now. Let consider it again if it can reproduced after the release of 0.11. Best regards.