mpl
12213c058e
Changed auth to take into account not only the credentials,
...
but the requested operation/action too.
This allows to restrict vivify credentials to only upload
(as well as get and stat, because they're needed) to the
blobserver.
Change-Id: Idaed60d1f0d679cb9795ba9a11f094f964774335
2013-01-04 22:17:12 +01:00
Brad Fitzpatrick
caa50142dc
sync: fix fd leak, update a TODO
...
Change-Id: I772ac951723300e4e5e767d7a25d6d4bcda3e825
2012-12-31 18:21:50 -08:00
Brad Fitzpatrick
898e522126
Close FileReaders. Hunting an fd leak, but this isn't it,
...
since FileReader.Close is back to doing nothing.
Change-Id: I65e906d75cf2825b9476ed5008ce042f44582113
2012-12-31 18:02:13 -08:00
mpl
ed20da7592
vivify: support in camput and upload handler.
...
no special credentials/auth yet.
pkg/blobserver/handlers/get.go moved to
pkg/blobserver/gethandler/get.go to avoid
a dependency loop with the json sign helper.
pkg/server/sig.go was moved to pkg/jsonsign/signhandler
because it seemed inapproriate to import in
pkg/blobserver/handlers/upload.go something from
pkg/server
Change-Id: Ifeb14512e182e8a101d4fced6d6d4184e2b9cb99
2012-12-30 23:39:22 +01:00
Brad Fitzpatrick
e3247edafb
Change blobref.SeekerFromStreamingFetcher signature to not return an error.
...
Change-Id: I77f693e3b3d0d116e08bca3d3f4cb45ef2a00b27
2012-12-25 10:27:35 -08:00
Brad Fitzpatrick
c4dd036203
root: put sighelper disco in the main disco document
...
Change-Id: Ic5ae125f01320fcec6ff23e56b11c75c41c4e94b
2012-12-23 16:58:26 -08:00
Brad Fitzpatrick
0cbf38b29a
root discovery: drop var, so things are on window.
...
Change-Id: Ib84203a1135d3254d1596d7d82ec1389f0a94475
2012-12-23 14:19:14 -08:00
Brad Fitzpatrick
8931c24e4c
root discory: allow 'var' parameter to set a variable.
...
Change-Id: Ic1d24f16b9b09508aec0d10574a4500b61277b83
2012-12-23 14:17:14 -08:00
Brad Fitzpatrick
9147750d2f
newui: automatic deps.js handler
...
Change-Id: Ic32aca321cca72cb498d7a17c56b9e7d4ac74321
2012-12-23 12:39:15 -08:00
Brad Fitzpatrick
8464059cab
newui: make index.html work
...
Change-Id: If32179fcac1e1725c47885bd609fd05c084bbc20
2012-12-23 11:01:19 -08:00
mpl
938c93ac45
cleaning up newui serving a bit
...
Change-Id: I5acea38112f1aa858631ce00581f45db356dd3a8
2012-12-13 23:37:38 +01:00
mpl
36db66cbb7
better regexps to match newui and closure urls
...
Change-Id: I7888cc836705b014fdfe711f397dd3d66c4cf6d9
2012-12-13 17:00:20 +01:00
mpl
cd32b0b5b9
move findGoPathPackage to osutil, and use it to define closureDir
...
Change-Id: I838a2e665591d13ecf3bb2689df1931d7e14465b
2012-12-13 12:31:56 +01:00
Brad Fitzpatrick
abb0e307d6
Show owner name on index page
...
Change-Id: Ic845283da88eea57a43a13ea13b2993070856102
2012-12-11 18:41:23 -08:00
Brad Fitzpatrick
f0dfc6b6b7
Make recent.html the main page.
...
Change-Id: I50fde12eacbc59e996b845e0ee4d898fe7ad2764
2012-12-11 18:29:58 -08:00
mpl
19edba9f64
newui layout, only for dev-server use for now.
...
Change-Id: I0e77b8088b2e04fd56e017678cb6e0a476b10682
2012-12-04 21:41:35 +01:00
Brad Fitzpatrick
e9806cf4a7
reduce some logspam. still a fair bit around images
2012-11-28 10:14:37 -08:00
mpl
535b856e1c
small fixes subsequent to brads comments on 94541905ff
...
Change-Id: I7493cc715f85d146049a452e9808814a13f7468b
2012-11-15 18:42:19 +01:00
mpl
94541905ff
use pkg/images (EXIF help) for thumbnails in ui
...
Change-Id: I60f0102efd1eb5b1c9ca070fe959b499ed8f7c5a
2012-11-15 01:53:58 +01:00
mpl
438ae4ecb4
recent permanodes thumbnails
...
Change-Id: I140766df4b58853e5bc4358f564cf1cfc807882a
2012-11-09 19:43:18 +01:00
Brad Fitzpatrick
a41269e78e
Reindex all dev-server blobs into memindex on restart.
...
Required some sync work (full syncs on start, blocking full syncs on
start, and also adding a dev-only hack to force a depedency from
search -> sync, to control the handler initialization order, otherwise
publish handlers would race with the sync handler and they'd create
new "blog" and "pics" permanodes and we'd end up with duplicates).
2012-11-07 22:40:17 +01:00
Brad Fitzpatrick
71d7cf9e88
Implement storage generations, init and discovery
2012-11-07 21:14:56 +01:00
Brad Fitzpatrick
bccf8ed575
Move discovery up from the UI handler to the Root handler.
2012-11-07 18:57:43 +01:00
Brad Fitzpatrick
5c4d0f71f5
gofmt
2012-11-07 18:49:14 +01:00
Brad Fitzpatrick
df5eee936d
Make discory work with an Accept header on the root
2012-11-07 18:04:40 +01:00
mpl
70368abb7d
rotate thumbnails
...
Change-Id: I87dd3008facc5e9c8007fc8ebcba13e98f4a2175
2012-11-04 14:36:31 +01:00
mpl
c61feaa0bd
wizard: placeholder for gallery field
...
The gallery field of the wizard is awkward and undocumented.
This placeholder at least gives a hint to devs (and maybe users)
on what is expected in that field.
Change-Id: Ie707dbecaf87ec98e267fcf6b987cd3b6a1d13e0
2012-10-29 11:10:42 +01:00
Brad Fitzpatrick
22495f8bfd
schema: adjust rollsum splitting algorithm, make it the default
...
We might tweak the parameters yet, and I want to add a bunch more
tests, but this is a major relief for me. I've been reluctant to
put too much data into my personal Camlistore instance until I
figured out how I wanted the file chunks to split.
This also simplifies (deletes) a fair bit of code.
Change-Id: I35c38cc5d39a8a43e3f62445434f8d7fd5de5d17
2012-10-29 02:03:05 +01:00
mpl
231c3d7405
wizard: bugfix, TLS is now https
...
this should have been done along with
the other changes in 94cb8cf05a
Change-Id: I376e6616c3aeaa9d5accb65b64a43d101de25d3b
2012-10-25 18:39:55 +02:00
mpl
0b15eb0cc8
handlers in wizard: swap arguments to match http handlers style
...
Change-Id: I78e9b218392979017682c375ce8a4b636ed3a832
2012-10-15 17:29:12 +02:00
mpl
844551d0b2
If baseURL was not user defined, this change makes sure it is
...
dynamically defined from incoming requests.
The listen flag has moved from pkg/webserver to server/camlistored
and is not using runsit anymore.
httputil.ServerError now only outputs the full error if we're
in internal/debug mode.
http://code.google.com/p/camlistore/issues/detail?id=53
Change-Id: I55a1c6d43a549d9ee2022742a83aa142dc19e02a
2012-10-15 16:26:50 +02:00
Brad Fitzpatrick
11eac8721e
Convert more code to use schema.Map instead of map[string]interface{}
...
Change-Id: I285fd1b0e730ebd32069688a71cb992c43770ade
2012-08-22 03:47:38 +10:00
Andrew Gerrand
aa5392f510
import image/gif to handle gif files
...
Change-Id: If9742b89562909bd70d2c9b8ceddd394975c7db0
2012-08-05 11:01:12 +10:00
Brad Fitzpatrick
8c293e34b6
Per Go initialism style, rename Json to JSON
2012-07-28 15:42:56 -07:00
Brad Fitzpatrick
ed4e781075
Merge branch 'master' of ssh://camlistore.org:29418/camlistore
2012-06-16 10:19:04 -07:00
mpl
497fc21385
Added/changed copyright
...
Change-Id: I1de302b52903ebf61100ab061c1fa7f14495fde8
2012-05-27 01:37:54 +02:00
mpl
b2f079f081
handle SIGHUP, restart camli from wizard
...
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00
mpl
ec70a6e2c8
typo
...
Change-Id: I52c06b45976e67413a133ce9229dd79701953495
2012-05-14 00:10:40 +02:00
Brad Fitzpatrick
50fe7a2fda
Make UI discovery have absolute paths, so root discovery using UI's discovery handler works.
...
Change-Id: Ieb1b5d143c528b4b15875aa810038c3ebdf30251
2012-05-13 13:02:20 -07:00
Brad Fitzpatrick
a63556640d
proper initialism case style
...
Change-Id: I622dcfc7076403470573ec76cef58307fdff3ffa
2012-05-13 12:53:17 -07:00
Brad Fitzpatrick
70c273ef93
style nit. use composite literal.
...
Change-Id: I7b70ee26c3ea799ad601d72cb1414a4a98992cbc
2012-05-13 12:20:18 -07:00
Brad Fitzpatrick
618efee2f5
Add discovery handler on root.
...
Change-Id: If816ff0dd5bb57d52445aff8cc67b8c801b606a8
2012-05-13 12:16:59 -07:00
Brad Fitzpatrick
de535fa264
factored syntax for block of regexps
...
Change-Id: Ie0f2e343fa9a37be8fd32356a72c26ccf46af311
2012-05-13 12:14:31 -07:00
Brad Fitzpatrick
420dccdd10
simplify code using newer Go APIs
...
Change-Id: I2425102367c4842e2b4a065f2e993ca9151bf9cc
2012-05-13 12:13:58 -07:00
Brad Fitzpatrick
0df3e3c689
Merge branch 'master' of ssh://camlistore.org:29418/camlistore
2012-05-13 10:52:50 -07:00
Brad Fitzpatrick
d29cbb5e35
rename FindHandlerByTypeIfLoaded to be shorter. document better.
...
Change-Id: I20b1a191d2d67972ba1f7a7fd3678d4ab4adae55
2012-05-14 03:48:51 +10:00
mpl
da73bef166
support user provided rootNode for published entities
...
Change-Id: I54810bded2cc03f320e1081945ff5cb2fce0d852
2012-05-02 16:18:05 +02:00
Brad Fitzpatrick
736d969cb9
fix build
...
Change-Id: Idf0168efdcec0868925cad5c9e51c3476696dab7
2012-04-26 17:04:20 -07:00
mpl
2a844730b3
support for published entities in genconfig and in wizard
...
Change-Id: I1768dac9628edb59cf0b987e9054b920d234b36b
2012-04-23 21:00:05 +02:00
mpl
255ed2a472
support arrays as comma separated values in wizard
...
Change-Id: I44de427c91859ee23c230f4649d5f27a1502370b
2012-04-21 22:44:13 +02:00