Comments (1)
I think it's related to this part of Model.java. If the blob was changed, it will delete the old one then save the new one. But what if the blob wasn't changed? It will delete the old one without providing a new one to save.
for (Field blobField : blobFields) {
Blob blob = (Blob) blobField.get(this);
String bloblFieldName = computeBlobFileName(blobField.getName());
Blob.delete(bloblFieldName); // <= ... we delete it from database
if (null != blob) { // <= If blob is not null
GridFSDBFile gridFSFile = blob.getGridFSFile();
if (null != gridFSFile) {
gridFSFile.put("name", bloblFieldName);
gridFSFile.save();
}
}
}
from play2-morphia-plugin.
Related Issues (18)
- play2-morphia-plugin blob related Error HOT 4
- Index does not seem to be initialised HOT 1
- UNRESOLVED DEPENDENCIES proxytoys HOT 4
- Compatibility with Play 2.0.4 and MorphiaPlugin 0.0.7 HOT 6
- Plugin not compatible with Play 2.1
- How to install version 0.0.14 for Play 2.1? HOT 1
- play2-morphia-plugin .asList related Error HOT 1
- How to install for Play 2.2? HOT 13
- id as Long can't work
- Play 2.3.X
- Play 2.5.x
- play2-morphia-plugin boolean related Error HOT 7
- How to install it? HOT 2
- add support for mongodb credentials HOT 1
- Thanks for this important fix HOT 1
- A big issue about Finder HOT 1
- morphia-0.0.6 (doubt abut filter) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play2-morphia-plugin.