read-write-web / rww-play

read write web Play
59 stars 19 forks source link

enable PUT for LDPCs and LDPRs #166

Open bblfish opened 8 years ago

bblfish commented 8 years ago

This is useful for subdomain creation, and also when clients want to make sure they have the right name for an LDPC. Also currently PUT is allowed only for Graphs, extend to allow for any type of content.

See:

bblfish commented 8 years ago

This is actually quite difficult to do with the current architecture. I tried a simple hack for this but came across the following issues:

This suggests that all requests should go first to the container, which should forward them to the relevant actor.

If we allow a PUT to also create subdirectories in one go, then we also need to containers to create subcontainers, etc... This suggests that we may need all requests to move very quickly down the actor hierarchy. This would be good in that it would also save memory, no actor needing to be created if a request for it was not made. Creating intermediate actors would also allow one to determine if a request holder were allowed to create resources containers, as each container actor could determine if the actor had write or append access to it.

So this should be moved to issue 167: requiring a rewrite of the actors