ZFN

JSON-RPC API Appending

Registered by Ross Light

File appending is the process of inserting data at the end of a file. It is present in the WebDAV access layer, but not in the JSON-RPC API layer. This document offers a proposal for adding an append mode to JSON-RPC API.

Blueprint information

Status:
Complete
Approver:
ZFN Developers
Priority:
Low
Drafter:
Ross Light
Direction:
Approved
Assignee:
Ross Light
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 0.3.0a1
Started by
Ross Light
Completed by
Ross Light

Sprints

Whiteboard

This seemed straightforward at first, but I've now hit a slight snag: I'd need to rehash the entire file, not just the new part, in order to get the correct SHA1 checksum. The reason I can get away with this in the WebDAV access is because the client already sent the data, but for JSON-RPC, I'd have to access it all over again.

Update 2008-11-16: I've now implemented the basics of JSON-RPC appending. The implementation hashes the original data while writing any new data from the client to a temporary file. Unfortunately, there is no way to get around a delay of some kind if we continue to hash the file.

Update 2008-11-20: Finished

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.