Commit Graph

68 Commits

Author SHA1 Message Date
Brad Fitzpatrick b33a785e62 Merge "Rearrange the Flickr importer to use OAuth instead of Flickr's custom importer." 2013-11-17 06:39:24 +00:00
Aaron Boodman 9ae23e52b0 Rearrange the Flickr importer to use OAuth instead of Flickr's custom importer.
Change-Id: I8284431fa6572a08d3c7ff0d0e655297627a4eda
2013-11-16 22:30:21 -08:00
Brad Fitzpatrick c573feb226 Make the search handler conditionally request the index be slurped into memory.
Change-Id: I7fadeba41c3b1bbcfbb0fd3470ff30cdf04b1b90
2013-11-16 15:18:16 -08:00
Aaron Boodman e4f25a2444 First little bit of Flickr importer.
Change-Id: Ia42b07a81b01904f5722d06653c4bf9de2e81c64
2013-10-20 11:18:53 -07:00
Brad Fitzpatrick cf116c6da9 importer: work on infrastructure for third-party import from other sites
Change-Id: Ib4e5e4d543a1b2a913b99fa0a4d92f1a5b94c5dc
2013-10-19 15:48:05 -07:00
mpl 0c1dc0d6e4 devcam test: generate keyblob with devcam put init
The integration tests run by devcam test require a
GPG keyblob in the default location (for camput), and
we do not track in git such a keyblob.
This change allows devcam test to create the keyblob
with devcam put init before running the tests.

Also, devcam server is now using CAMLI_KEYID instead
of hardcoding the key id in the dev server config file.

Change-Id: I030b88c9a9321016fedb62424e0e707621206922
2013-09-20 20:03:21 +02:00
mpl 6210cc8d56 devcam server: sqlite support.
Also makes kv use CAMLI_DBNAME for the index file instead of
CAMLI_KVINDEX_FILE; one less env var to care about.

http://camlistore.org/issue/225

Change-Id: I954cc2e5ff8ed1bb213435af18f1ecc2948c4e59
2013-09-20 14:04:03 +02:00
mpl edd7f68799 serverconfig: add test for mongo indexer, fix dev mongo config
Change-Id: Ifb7f8cef208dc93a4cf350ff197bb2af2c0e0e81
2013-09-09 22:54:32 +02:00
mpl 3a26c433db devcam: 'put' and 'get' commands, replace dev-camput and dev-camget
Also added -port flag, and untied the port to the
password in devcam server, always 'pass3179' now.

http://camlistore.org/issue/212

Change-Id: Iadf693951763d47907be17c53d4807a4706eb150
2013-09-01 10:25:09 -07:00
Brad Fitzpatrick 500ba50b97 devcam: make kvfile the default dev-server indexer.
Memory index requires -memindex now.

Change-Id: I6df424e88c3783e397c528cd8633402a9edf3d95
2013-08-23 17:19:21 -05:00
mpl 31df3635a4 camput: ignore files like .DS_Store with -filenodes
Also made initTrustedCertsOnce a field of the Client
object, as it is a similar change.

http://camlistore.org/issue/104

Change-Id: Iabbd7f06e06d31265f390a23c4bdaac956f856f7
2013-08-19 17:21:10 +02:00
Brad Fitzpatrick 13fe0608fb Start of integration tests and a library to make them easy.
Change-Id: I24c55252d81d2170205f090a11a5c45473707e5d
2013-07-20 22:36:53 -07:00
Josh Huckabee bdac95b218 Fix dev server TLS config.
Change-Id: I630b7381d72ce4538de489db69e6d8300afb65ce
2013-06-25 07:44:49 -07:00
Brad Fitzpatrick 0cc0cadee9 dev-server: add a share handler
Change-Id: I211fe078d1bc32b5abb4d3a2c48b0a8b566236de
2013-06-23 13:50:02 -07:00
mpl da5056c0d1 dev-clients: rename config file to match xdg compliant changes
Change-Id: I51d6dffb38fa178db151da8c7d2bcc041f996413
2013-06-22 16:40:19 +02:00
Brad Fitzpatrick 10d000d900 ui: serve Closure from embedded zip data when available
Change-Id: I9bb6bb4f13f69b293fd98441d82068c0677ffbd5
2013-06-18 23:14:36 -07:00
Brad Fitzpatrick 3176c5be43 encrypt: require big ugly I_AGREE configuration in order to use it, so people don't get misled
Change-Id: I4259e423d6a4b733f353a1e8792c6b8cb3c95c43
2013-06-15 20:08:37 -07:00
Brad Fitzpatrick d12007af52 encrypt: enough of a shell to start up in dev-server, even if nothing works yet
Change-Id: I7e3c17d952a943afd4cfb57939f25bf181aaa6fd
2013-06-15 15:05:27 -07:00
Brad Fitzpatrick 5761b57d69 Work on implementing new static resource plan, as documented in the big TODO item.
Change-Id: I79d7665a24633630c39cceb5e1ab49cbb0300150
2013-06-12 10:10:24 -07:00
mpl 7059a616c0 show server status on index page
We're only showing build version for now.
Next step would be status handler.

See http://camlistore.org/issue/111

Change-Id: I9e0792abe9ffed8139d38478d186b6e75f99de7e
2013-06-09 18:46:24 +02:00
mpl 11a3f78691 WIP: switch from ui to newui
This CL proposes 4 changes:

1) When making the embeds, any .html files in newui is rewwritten
on the fly so that the resulting embed uses all.js instead of
individual .js files. all.js is the only javascript file embedded
for newui.

2) Various bugs and paths in the newui/*.js files were fixed so that
everything works when using all.js

3) pkg/server/ui.go was modified so that all features from ui should
now have an equivalent in newui, that is served through ui/new/.
In a next step, we can move back everything from newui/ into ui/ and
completely get rid of the old ui.

4) The published gallery now uses closure too.
In another next step, we should probably work on serving its static
part directly from an .html file or (include it in the zembed somehow?)
instead of generating it at every request. Or at least cache it?

This commit includes the zembeds in newui, except for zembed_all.js.go
since it is large and it would take a lot of space in the git history
everytime we change it.
The plan is to roll-sum it into chunks to address that problem.

Change-Id: I381d8ddf3a2bbe37e3c4b1c4bf423f16beffaaf4
2013-06-04 16:34:51 +02:00
Brad Fitzpatrick c7bbccf435 config: Rename blobServer config key and flag to just server. use auth from environment when an explicit server is given
Change-Id: I07cfe3df3b644e143fcb92456e56d238bbbdd52e
2013-01-25 16:23:31 -08:00
Brad Fitzpatrick abb0e307d6 Show owner name on index page
Change-Id: Ic845283da88eea57a43a13ea13b2993070856102
2012-12-11 18:41:23 -08:00
Brad Fitzpatrick db55ee77d9 camput: automatic blobroot path discovery 2012-11-07 22:23:45 -06:00
Brad Fitzpatrick ff60ec2785 Get rid of some old camput config cruft 2012-11-07 21:19:07 -06: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 bccf8ed575 Move discovery up from the UI handler to the Root handler. 2012-11-07 18:57:43 +01:00
mpl 295cbade1b Add postgres support
Also added the -short option for make presubmit
because postgres test is too slow.

Change-Id: I6be21c4d4cd67671eb44ab65333fc32c1e261bbd
2012-11-03 19:59:22 +01:00
Brad Fitzpatrick 73cd34a6a0 serverconfig & camlistored: simplify low/high-level config bootstrapping.
Change-Id: I22e003ff2eaa29b09a5c4cbb59afa1ca9bd624df
2012-03-19 13:09:00 -07:00
Brad Fitzpatrick f745487a49 In dev server config, use /bs-and-maybe-also-index/ to speed public permanode bootstrap blob uploads.
Change-Id: Ib32164ca9e3e958d34906077a1841800026d42ee
2012-03-03 12:54:20 -08:00
mpl a7b2879e43 mongodb indexer + dependencies (mgo, bson, gocheck).
Change-Id: I6a54ff99777b6283829f3dfcafb0295b6022d5a7
2011-12-31 23:36:16 +01:00
Brad Fitzpatrick 4af82166a3 Missing part of a16b1f43ca, which broke search.
Change-Id: I6d726982b9ab5d6aaaef742cb5047f84e2f22c38
2011-12-10 17:28:00 -08:00
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
mpl 0e71f20415 auth: added username, camput can do https
Change-Id: I14a047f1a164b64062d94da0db7a64a658b086ae
2011-11-27 01:29:24 +01:00
Brad Fitzpatrick 911478aa30 Add dev-server --memory flag to disable mysql indexer and use in-memory index.
This is for testing the new generic indexing infrastructure.

Change-Id: I83798558a3de6ab2c53ae10e47f7189461043420
2011-11-26 15:30:22 -05: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
mpl 93ea543b39 hacky (but working) draft for caching thumbnails
Change-Id: I3c4714e76089c406019cf051c07ab05546af34ed
2011-10-28 19:25:10 +02:00
Robert Hencke 63cec7a2ef serve dev-blobserver on /bs/
Allows dev-cam* commands to be used without modification.

Change-Id: I918ebf2e77d1bc0899d216698c055d4c3e23ff7a
2011-07-09 20:00:07 -05: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 741985eb9e dev-server: make mysql db name a function of $USER
This permits multi-user development servers without
stepping on toes.

Change-Id: I563fd93b2bdb23362a96a616c71e0efa3b984ba9
2011-07-01 19:17:08 -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
Brad Fitzpatrick 2790963643 More publish work, making UI handler aware of publish roots.
Change-Id: I9cbb00aa3506cece8cf3d7a7b11d445662c4873e
2011-06-19 13:09:43 -07:00
Brad Fitzpatrick 0d7581ede6 Start of publish handler.
Change-Id: I229c9e00a19aa985050373beda696c5468a94105
2011-06-16 20:48:06 -07:00
Brad Fitzpatrick fa3715134a Start of indexer indexing file schema's content digests. 2011-06-08 17:49:31 -07:00
Brad Fitzpatrick 8d84a4de10 Add blobref.SeekTester interface; fixing UI downloads from cond storage. 2011-06-04 09:58:50 -07:00
Brad Fitzpatrick 0df00167ec cond: implement it (routing incoming blobs) and use it. 2011-06-04 08:46:42 -07:00
Brad Fitzpatrick c6cfe2fda4 Start of 'cond' handler. 2011-06-03 21:52:56 -07:00