GameFile should not deal with File objects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MUGLE |
Fix Released
|
Medium
|
Prageeth Silva |
Bug Description
I don't think the current GameFile class is appropriate. Note that it deals with java.io.File a lot -- not as a field (which would be very wrong since we can't store a "File" in the database), but nonetheless, I don't know if GAE will even let us use the java.io.File class, let alone give us one. GAE does not have a file system (which is why we are using blobs in the first place).
Think about the use cases for GameFile. They will basically be entirely HTTP-based. MUGLE isn't going to use the files at all -- it is just implementing a file-system-like interface on the blobstore, via HTTP. The HTTP interface will basically be you can PUT files and you can GET files, and that's it.
From within the program, the PUT operation will basically come to us as a javax.servlet.
From within the program, the GET operation will basically require that we fill in a javax.servlet.
Related branches
Changed in mugle: | |
status: | Fix Committed → Fix Released |
Fixed in trunk r65.