3 ms·
Why can't you publish the URL with the version appended? The full (location + version) URL translates to a static resource. Unless you imagine people don't enjo
by derefr 14y ago
Why can't you publish the URL with the version appended? The full (location + version) URL translates to a static resource. Unless you imagine people don't enjoy seeing query-strings in their reports, perhaps.
Or is it that you have to be able to predict the full URL in advance of the upload? In that case, yes, adding a server giving out signed URLs to the bucket is probably the best solution.
Alternatively, if you really want to be sure the content can't change, you can generate a .torrent file from the document, hash it, stick it up on a tracker somewhere, and then give out magnet:?xt=urn:sha1:[...] URNs. Those can't mean anything other than the document they referred to when published, even if you as the server-authority wanted them to!
...
Or, you could try to use DURIs[1] and hope that browsers will advance enough to automatically translate them to Mementos from a TimeGate[2] delivered by your unversioned resource. Sadly, some "standards", aren't. ;)
[1] http://tools.ietf.org/html/draft-masinter-dated-uri-05 http://tools.ietf.org/html/draft-masinter-dated-uri-05
[2] http://www.mementoweb.org/guide/quick-intro/ http://www.mementoweb.org/guide/quick-intro/
- avodonosov 14y agoYou are right, it might work. Why did I rule out versioning? Maybe just was overloaded by alternatives. Thanks, I will consider this alternative if I will need to change the solution next time. > Unless you imagine people don't enjoy seeing query-strings in their reports, perhaps. I am concerned about this a little, although I probably can live with that if everything else works OK.
- avodonosov 14y agoAbout the pretty URLs. I can even try to submit all the logs to the same object /my-bucket/log. The version ID is then the key to distinguish them. http://my-bucket.s3.amazonaws.com/log?versionId=L4kqtJlcpXroDTDmpUMLUo http://my-bucket.s3.amazonaws.com/log?versionId=L4kqtJlcpXro... http://my-bucket.s3.amazonaws.com/log?versionId=X4xxxJlcpXroDTDmpUMLXx http://my-bucket.s3.amazonaws.com/log?versionId=X4xxxJlcpXro... http://my-bucket.s3.amazonaws.com/log?versionId=Y4yyyJlcpXroDTDmpUMLYy http://my-bucket.s3.amazonaws.com/log?versionId=Y4yyyJlcpXro...
- deleted 14y ago[deleted]