Commit Graph

393 Commits

Author SHA1 Message Date
mpl 9bfe46208f some more auth, continuation of I14a047f1a164b64062d94da0db7a64a658b086ae
Change-Id: I763c797f110854e0a3c906aceac72fff234f43df
2011-11-29 00:10:50 +01:00
Brad Fitzpatrick 1ad31ef6c8 Merge "auth: added username, camput can do https" 2011-11-28 02:06:43 +00:00
Brad Fitzpatrick 3dd1dcbb70 simplify the Index.GetRecentPermanodes method a bit
Change-Id: Iced53892d3a1ab7633762e8c59986a59d5dc3d90
2011-11-27 10:52:39 -05:00
mpl 0e71f20415 auth: added username, camput can do https
Change-Id: I14a047f1a164b64062d94da0db7a64a658b086ae
2011-11-27 01:29:24 +01:00
mpl e233c981e0 auth: config for a non dev mode,
self gen tls certs, force https in non dev

Change-Id: I7faa6b35f44a7925b06d22ade7f5986a12728362
2011-11-10 16:20:53 +01:00
Brett Slatkin 4583209090 App Engine: Tries to implement RemoveBlobs
- No idea if it works!

Change-Id: Id1a6c1baf79ddcbd45a93cb49d5aff48889bc87d
2011-11-02 00:05:02 -07:00
Brett Slatkin 9ba68379cd App Engine: Fix the build
Change-Id: Id7abfa450839e842921c80c90dd33ab63e02f06e
2011-11-01 21:37:10 -07:00
Brad Fitzpatrick b223044009 app engine work: WrapContext on cond, replica, and aeindex.
Change-Id: I8667413c241acd99387184d561beee4d1aec623c
2011-10-27 22:08:55 -07:00
Brad Fitzpatrick f717516881 more app engine logging
Change-Id: I4ad74dadb60f8de25a959b7b815cbca7da92ff2f
2011-10-27 14:27:18 -07:00
Brad Fitzpatrick c71dee2bc2 app engine index: close dest channel in GetRecentPermanodes
Change-Id: I6c23f255513ef62a223550c31ec608b2ad62850c
2011-10-27 14:01:10 -07:00
Brad Fitzpatrick a53ef6e257 more App Engine bootstrap work.
Change-Id: I11a141b833bf1940aadcd0cd20adc53da8ea4151
2011-10-25 19:40:50 -07:00
Brad Fitzpatrick 955c949dc7 appengine: unify some code
Change-Id: I4eff754c04aa3ca93e23cdea1fa20c1af7c5d48e
2011-10-21 18:42:09 -07:00
Brad Fitzpatrick c195fdfe0b Start of App Engine index
Change-Id: I888128936215baceeefa2147417c0c5e6f6ef3b3
2011-10-18 19:14:42 -07:00
Brad Fitzpatrick 3e5dfa6688 App Engine: wire up sighelper.
Change-Id: Ia591ff293ba35422936d9c0c97fcd340f1008533
2011-10-18 14:36:04 -07:00
Brad Fitzpatrick 17c4fb81f4 Get the UI starting to work in App Engine.
Change-Id: I6fc3420bb6e4d41595c3ef511bbdafa82ff51cf3
2011-10-18 11:12:53 -07:00
Brad Fitzpatrick e351525afd Move all the camlistored handlers (UI, signing, etc) into a package.
Change-Id: Idf63c83cd7faf006e4a9047b47a16ea2950e5147
2011-10-18 11:12:01 -07:00
Brad Fitzpatrick 94e1484db4 start of long road of adding UI + search to app engine
Change-Id: I7c504d1f431cc15dd71afef75ff98cfe91712c02
2011-10-17 07:53:50 -07:00
Brad Fitzpatrick b7c75e2011 clean up app engine init a bit; show error messages in browser.
Change-Id: Id99a2015b65a0d8aa6618451adfac38f21969222
2011-10-17 07:53:30 -07:00
Brett Slatkin 130b05eaeb App Engine: Fixes /bs/camli/stat to return the correct upload URL
Change-Id: I9062917fe052652c3714c99ab7f572f8f20e5dba
2011-10-13 00:00:54 -07:00
Brad Fitzpatrick f345db5411 AppEngine storage namespace support.
Change-Id: I41d83598cfdef4795d5fbc5763efcad81de84c0a
2011-10-12 18:10:58 -07:00
Brad Fitzpatrick d2d1018f59 App Engine: store size and blobref as []byte to make them unindexed.
Change-Id: Ie0254f95250ec986df67feef519e07b781b7761a
2011-10-10 18:48:34 -07:00
Brad Fitzpatrick cfb2765395 App Engine enumerate support. All works.
Change-Id: I61470090f5f2f30f8f6e7a802f6489d943aed1b7
2011-10-10 17:58:59 -07:00
Brad Fitzpatrick 4fc24cba87 App Engine get support, untested, and fix Config shadowing breaking stat
Change-Id: I488a81c7968af746b727bcfc3ed8a4649107a26c
2011-10-09 18:41:54 -07:00
Brad Fitzpatrick e9991b1702 Barely tested App Engine stat handler support.
Change-Id: Ia8abc53e3f538198773940f9515ff551e97eb8de
2011-10-06 23:24:40 -07:00
Brad Fitzpatrick e69c74af54 Untested App Engine storage receive support.
Change-Id: Ib0e884857872064b9886808bd0f83c69d8f3aa77
2011-10-06 18:10:29 -07:00
Brad Fitzpatrick 2600d227eb introduce ContextWrapper to get App Engine its Context.
Change-Id: I789440f01a42b1172b6c70ff14f00ff5bd45786a
2011-10-06 17:44:30 -07:00
Brad Fitzpatrick b5cb593bf3 Start of an App Engine blob storage implementation.
Just a shell for now, but wired up.
2011-10-05 14:34:55 -07:00
Brad Fitzpatrick f522a6f588 More camlistore on App Engine work; starting to work. 2011-10-04 16:39:02 -07:00
Brad Fitzpatrick 3f5631d2d8 serverconfig: push abs path business to caller 2011-10-04 16:22:12 -07:00
Brett Slatkin b2c08dda1d camlistored appengine: App Engine symlink farm work, r59 hell
Change-Id: Id97f446c859ddd9caf4c5441b3cd1d2998f34d66
2011-09-30 05:43:56 +00:00
Brett Slatkin 008738ed7a Start of camlistored on App Engine
Change-Id: Iaae1ba699875c4a56f3e0f93dea6e6c91fe844fe
2011-09-30 05:25:21 +00:00
Brett Slatkin b967f04d4e camlistored: Refactor main() into tiny main and loader library
This will make running on App Engine a lot easier, letting us share code.

Change-Id: Ibe989387d44d94869c31c8306683e49af261496a
2011-09-30 05:07:04 +00:00
Brett Slatkin 8a96dc4037 camlistored: Refactoring main function into smaller pieces.
Change-Id: I66cc428c961f4b0582f20d906da4cb621a7e3aaa
2011-09-30 04:18:12 +00:00
Brad Fitzpatrick 8c72348a19 Rename Stat->StatBlobs, Remove->RemoveBlobs; add StatReceiver.
Also, return missing errors in google storage stubs.

Change-Id: I5b168bbcd8a2996e3db4ffc35d2ac06006b3a2d3
2011-09-28 19:37:28 -07:00
Brad Fitzpatrick 31488a1d5f Issue 43: clean and rename the "files" table and its columns
Part of Issue 17 (the files/bytes change)

Details:
http://code.google.com/p/camlistore/issues/detail?id=43
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ic6ebc018edf51f92bf2063c42fa19f80fe597181
2011-09-13 19:56:58 -07:00
Brad Fitzpatrick c0ea8dbcb1 Issue 17: file vs. bytes schema change
Details:
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ia1237952a2a66f1dcacd00c5c28eb360d9f1d1d7
2011-09-13 11:57:50 -07:00
mpl b0dda5e86f Various renamings. dropped getTagged.
Change-Id: I20982074071b819110fe07cb795ffcb7d6c8560e
2011-09-04 00:48:49 +02:00
mpl aa83d21048 added search by title,
merged with search by tag.
added general search.

Change-Id: I98244e62dbd8a4c75527c4a029bd78f8978cbadc
2011-09-02 13:45:55 +02:00
Brad Fitzpatrick 88c89757e1 gofixes for latest Go changes
Change-Id: Ib7b3aea5adff0e1683bcb421cc3549c31d9fe174
2011-08-25 19:14:47 +04:00
mpl d0d97a8b69 keep the url bar in sync when searching
Change-Id: Ibcf6edbd519bc4cb031ed1dba46555596ed3e0a3
2011-08-11 00:26:42 +02:00
mpl 4f4955dcc3 add search results to existing collection
Change-Id: I3211397acf161270caa51b809c081a05c70059c2
2011-08-07 21:59:33 +02:00
mpl 1b4f3fe243 started on issue 29:
-send searches on search.html
-added checkall tickbox

Change-Id: I28d5b61bedda2c1d9fb168a65b5b4d9a0b9cb3de
2011-08-06 15:27:32 +02:00
mpl 6498b71329 create permanodes from the filetree browser + ui details
Change-Id: I7d03f5891a3749cd904c1817dd63b2af4f883967
2011-07-22 18:31:22 +02:00
Brad Fitzpatrick fc154b900e schema: make DirectoryEntry return errors instead of nil
Change-Id: I7965e35fef75e54023903044f0b8150e4420a653
2011-07-18 19:06:56 -07:00
Brad Fitzpatrick 41c701d1f7 Merge "browsing a (permanoded) dir continuation of https://camlistore.org/r/36" 2011-07-19 01:47:18 +00:00
mpl 42dcd20ccb browsing a (permanoded) dir
continuation of https://camlistore.org/r/36

Change-Id: Idd4977bb5f4d3c5bf80831ffa4d09085485da0f0
2011-07-18 15:49:31 +02:00
Brad Fitzpatrick a0dcdfc74d Fix URL opening on windows.
Change-Id: I802b8d9a41a551c8af10d848ba9e60439a3a00d2
2011-07-17 17:57:48 -07:00
Brad Fitzpatrick 95a98d991d open admin UI on windows
Change-Id: I0df5042ddd9bb9058660468b862916a97b86c280
2011-07-17 17:30:40 -07:00
Lindsey Simon 5118bf7c68 Edit title works now.
Change-Id: Iedeab4ce600425f23c3c6e84415e7f914d8c6715
2011-07-11 13:09:25 -07:00
Lindsey Simon a461c76ccd Photo gallery stylin
Change-Id: Ibfe50a8d58ee2bb0f1f85b45a1b617026f154a71
2011-07-11 13:09:25 -07:00
mpl bce36761a1 undo merging of change If30e0a9613db42a94feda66bb225a844de6d1839 because still a wip
Change-Id: Id25f5aa0ae63b9d41d8a3ac9fd832194eafd07ee
2011-07-11 10:51:40 +02:00
Brad Fitzpatrick bf2f700445 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-10 19:33:46 -07:00
Brad Fitzpatrick 093d3b81bb Remove some square crop debugging.
Change-Id: Icc5cc7af44a01c6b6c8b41a9db247f494179c758
2011-07-10 19:33:34 -07:00
mpl ad49800183 hacky sketch for browsing a dir
Change-Id: If30e0a9613db42a94feda66bb225a844de6d1839
2011-07-10 12:30:29 -07:00
mpl 431af4fcf2 Contain global vars in CamliHome
Change-Id: I9ee3d1bdea870b0f8fae6db24aed546cabce02b8
2011-07-10 14:31:25 +02:00
Robert Hencke b886a74d39 make govet happier
Change-Id: Iee52786e9f68f0a0f94dd70fa7917cf24d54e8c3
2011-07-09 16:11:20 -05:00
Brad Fitzpatrick 93bb2c28c8 Somewhat broken image thumbnail squaring code.
Currently crashes on resize (due to recent core library image changes?)

Change-Id: I7887f79cb42f1be10384081e3c4faf20decf7279
2011-07-08 18:14:18 -07:00
Brad Fitzpatrick 16cc888842 Add configuration discovery to publish handler.
This permits metadata edits on the publish page if the
viewer is the owner.

(e.g. tagging, titling photos...)

Change-Id: I08b098eaae92f5b629b02707d67bec23a705c29f
2011-07-08 15:05:46 -07:00
Brad Fitzpatrick 711bcfbd44 Fix image resizing bug.
If the image was already smaller than the treshold, it was
trying to re-use a buffer that was already consumed.

Change-Id: Ifb61fe0bae401462188a8e08ddf2937c7080c4df
2011-07-08 13:33:55 -07:00
Brad Fitzpatrick 41ecf43eb0 publish: let js & css files be configurable
Temporary hack to unblock Lindsey

Fixes (partially) http://code.google.com/p/camlistore/issues/detail?id=26

Change-Id: I9541d62622116bd30ce7d7e5507a4808089fe6d7
2011-07-08 10:03:53 -07:00
Brad Fitzpatrick 18addb2c26 Let all handlers be able to be disabled in config file
Fixes http://code.google.com/p/camlistore/issues/detail?id=24

Change-Id: Ia54815f70c62955c4abe442237b35e4ef6113448
2011-07-08 09:08:41 -07:00
Brad Fitzpatrick 6fe189a4cd publishing: new URLs, tests. Yay photo galleries.
Change-Id: I9081b49faf95f5193945032cbc6711f412bca198
2011-07-06 18:38:27 -07:00
Brad Fitzpatrick 5acac08a6f Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-06 16:36:50 -07:00
Brad Fitzpatrick 94242a9ac4 more publish path tests.
Change-Id: Ieeea2d76a476bc169f4fd3f962c18b0e3896719d
2011-07-06 16:33:31 -07:00
mpl c190805c93 bugfix: array -> element in showTaggedPermanodes
Change-Id: I62656958ee22ebd6dfabbeb46c52326f433b0653
2011-07-07 00:42:37 +02:00
mpl bdd3304c69 fix typo in camliSigDiscovery
Change-Id: Iee5a6a8ced27bccd39ab1912ed3f262ace14793e
2011-07-07 00:08:32 +02:00
mpl ef215f1203 create collection from tag search
Change-Id: I541837b86a39818df7373daa4dbbfbfe97cf5cfc
2011-07-06 22:09:54 +02:00
Brad Fitzpatrick 40c4e2e1f0 Start of publish tests.
Change-Id: I0fe2d03942c25d0bf28ba334568781a55324f013
2011-07-06 11:59:50 -07:00
Brad Fitzpatrick a477909f09 publish: support /mxxx subresources. aka HTML pages for permanode members. aka photo one-up pages from galleries.
Change-Id: I404e836a728048631c6149ef76eb6d7014ec7978
2011-07-05 17:27:10 -07:00
Brad Fitzpatrick ebaf8b563e publish: static file support. and ditch camli/misc/vfs now that it's in Go's pkg http.
Change-Id: I5bf87d3ee305173c722fab6d9f1568a7c1be081a
2011-07-05 12:10:35 -07:00
mpl 3a60067733 escape fileName
Change-Id: I747833a7144b0ae86624626d89a7c4d634034b7a
2011-07-04 22:23:14 +02:00
mpl db3ea3a4d6 first gallery draft
Change-Id: Iab293a89f395ec0113ca33693539365c7a7be3e8
2011-07-04 18:27:14 +02:00
Brad Fitzpatrick 18dd23f58d Some UI type work, and show thumbnails nicer.
Change-Id: Iaf151de73f518323cc64ec2a836f0805cb05193e
2011-07-03 15:24:58 -07:00
Brad Fitzpatrick 2c126a4841 Photo gallery thumbnails.
Change-Id: I71a628057ff790928e96909512e43d2997a76f85
2011-07-03 13:33:56 -07:00
Brad Fitzpatrick 0cfede3c93 Move UI thumbnail handler off into separate ImageHandler
Change-Id: I1b82dab2bf8342887453a89ac058e76222f3b43b
2011-07-03 13:33:41 -07:00
Brad Fitzpatrick 182a058232 publish: serve subresource files (e.g. gallery members), with access control
Change-Id: I9f91b596b145c83bb026ba93becb5174480acadc
2011-07-03 12:28:39 -07:00
Brad Fitzpatrick c201c98959 split off download handler code from the UIHandler.
Change-Id: Ifb0e80419f8712087ad9cad8214af330c7af8420
2011-07-03 10:53:02 -07:00
Brad Fitzpatrick 9de129e71c more publish cleanup
Change-Id: I9f326d91bb65533c535486f1df3b4d19aa91cfee
2011-07-03 10:18:54 -07:00
Brad Fitzpatrick 78078701d0 publish: start of file resource downloads, later thumbnails.
Change-Id: Ida5b009c11d359887edad7612aeec5dab96447e4
2011-07-02 23:32:42 -07:00
Brad Fitzpatrick 5b3a4e4d00 publish cleanup, add publishHttpRequest type.
Change-Id: I187aaaffb7abf75e83b68b25be442c2806cfcad5
2011-07-02 23:02:11 -07:00
Brad Fitzpatrick f3e409a15c publish cleanup
Change-Id: I81c5296acf3d3b7951782c5417348952902721cf
2011-07-02 18:29:57 -07:00
Brad Fitzpatrick 6179e508e3 publish: show title, members, include javascript blob metadata
start of awesomeness.

Change-Id: I45d63b04fa223b9aafceb9452b179e4ddc52bce5
2011-07-02 17:16:30 -07:00
Brad Fitzpatrick 66c0e430d0 UI: handle roots in the permanode page, show attribute debug at bottom.
Change-Id: Id95b478b7a8c1f3825187ea7b291331be4dbe3f5
2011-07-02 10:36:32 -07:00
Brad Fitzpatrick 5b583ee6e8 Add forgotten tag -> camliTag rename.
Change-Id: I70ae2610131981c40710728e3c1b6f1fe232f805
2011-07-02 10:35:46 -07:00
Brad Fitzpatrick 76b446ad40 When bootstrapping camliRoot publish nodes, set a title for the UI.
Change-Id: I2aad15e9fce6ac1e26b1f8f5ba45241983f6caca
2011-07-02 10:35:19 -07:00
Brad Fitzpatrick 024e801ca7 gofmt the whole tree
Change-Id: Ic1b3dd12a4ede83b299dcf51f342e72d4f8700da
2011-07-02 09:09:50 -07:00
Brad Fitzpatrick 08b8ba8570 On publish page, dump Describe response JSON.
Change-Id: I4e7aa9e12a78f53008873067116b5991f07a7b30
2011-07-02 09:06:34 -07:00
mpl 05c18e873e search for permanodes with the given tag(s)
Change-Id: Ibbe0163da522698c253615a26d4201a7e28348de
2011-07-02 17:16:19 +02:00
Brad Fitzpatrick 97141d4d27 Merge "ui: Linkify paths on permanode page." 2011-07-01 21:34:06 +00:00
Daniel Erat 5b84668e1d ui: Linkify paths on permanode page.
Change-Id: I056896715b174bd3abd91799a86c73f3a8d83d3f
2011-07-01 21:31:41 +00:00
Brad Fitzpatrick d304cb7a42 Merge "Implemented config file includes." 2011-07-01 20:34:12 +00:00
Daniel Erat 80d4e8912a server: Support deleting paths.
Add an "active" column to the indexer's path table and use
it to track deletion of path attributes.

Change-Id: I579d53a80302d0f7ecc51b5c49913cd23814ce73
2011-07-01 19:45:03 +00:00
Brad Fitzpatrick d572f898f7 search/publich: rename PathLookup to PathsLookup, add PathLookup
Change-Id: If6804af2229885cfa22d67d608d17e600d7402f3
2011-06-30 14:36:07 -07:00
Iain Peet 0ca7712691 Implemented config file includes.
I've implemented the previously stubbed out "_file" config expression.  The root
JSON object of the included file becomes the value of the field.  In addition to
searching the CWD and the config dir, the include will search directories listed
in the CAMLI_INCLUDE_PATH environment variable.  The include path is useful
because it gives us the ability to have default configs in git which can be
overridden by custom configs which are provided in another path directory which
gets searched first.

I ended up working on this because, as I was thinking about how to approach
supporting Google Storage, I realized that we would need to have secrets in
includes; this would be a pain when combined with the current configs and
runscripts in GIT.  So, one thing lead to another, and now this is done.

Change-Id: Ib256859326dfceefed90d0fadf83a76adffd538b
2011-06-30 14:21:26 -04:00
Brad Fitzpatrick a251f4064c search/publish: Add PathLook, wire up to publish handler.
Change-Id: I8645c54adbc6d84c18ecc814ca1966113da32d85
2011-06-27 18:42:00 -07:00
Brad Fitzpatrick 40739efa6b search + UI support for finding paths of a permanode
Change-Id: Iae9cfed38660204cf7e85342cd951d542a7258a2
2011-06-25 17:50:38 -07:00
Brad Fitzpatrick 47000868f5 UI: for publishing: let your create root path claims.
Change-Id: Icbe64995d3123190b1679583b8dff9b8427d4f10
2011-06-24 10:34:10 -07:00
Brad Fitzpatrick bf28e7e6e5 Add FileReader onerror handler
Chrome 14.0.797.0 (Official Build 89638) dev has a FileReader bug, btw.  Fixed in 798.

Change-Id: Ie370a368be0ad8e923354f6f02a0cc55705b4642
2011-06-23 18:26:27 -07:00
Brad Fitzpatrick 23ff0a071f publish work: optionally create publish root permanodes+claims on start
Change-Id: I8659e977cea8872443ff2b311a7d0d8a2804c269
2011-06-23 12:12:37 -07:00
Brad Fitzpatrick 12cdf34ea3 Start of publish handler creating its root permanode.
Change-Id: Iedefee0650bd250933e104328023c24e40a94bf6
2011-06-22 22:26:11 -07:00