Commit Graph

591 Commits

Author SHA1 Message Date
Brad Fitzpatrick 6ca0efac8c camlistored: much better sqlite support, by default, and help/docs/hints 2013-01-10 16:16:10 -08:00
Brad Fitzpatrick fb6c89a24f appengine: don't build contextpool except in appengine context 2013-01-10 13:13:27 -08:00
Brad Fitzpatrick b013697e51 App Engine: the index works now, and everything seems to basically work!
yay.

Change-Id: Ib6c7983de4a81decf16389b5883726830fc4d9db
2013-01-09 14:45:00 -08:00
Brad Fitzpatrick bc61e17d16 App Engine: use proper types + noindex in storage handler
Change-Id: I6f85086d89659b1cef9d9953627ff7e468b273e1
2013-01-09 14:23:22 -08:00
Brad Fitzpatrick 94a478c117 App Engine: index: implement Delete
Change-Id: I4ddf8656dd93094336d380cce9a92983baea502c
2013-01-09 10:47:39 -08:00
Brad Fitzpatrick 31872f20f9 App Engine: use an Entity Group per namespace index
Change-Id: I885b6093ff87f71cf032bf984eb2041f0705cf08
2013-01-09 10:46:24 -08:00
mpl 67c5678062 Index directories with "fileinfo", and use this to
find their name in a search request.

Fixes http://code.google.com/p/camlistore/issues/detail?id=79

Change-Id: I755afd8f52dbd2f8a48ba72bed0a6b0192d1dd71
2013-01-09 16:59:04 +01:00
Brad Fitzpatrick 360f63a64b More App Engine index work.
But fail: 2013/01/09 03:38:54 replica: receiving blob, 1 successes, 1 failures; last error = API error 1 (datastore_v3: BAD_REQUEST): ApplicationError: 1 operating on too many entity groups in a single transactio

See http://stackoverflow.com/questions/8251594/how-many-objects-is-too-many-for-in-a-single-transaction-to-googles-datastore

Sigh.

Change-Id: I90dff1b6bd40a00b4be19c5599583d2131b739d4
2013-01-08 19:43:09 -08:00
Brad Fitzpatrick 2f188a1916 Fix JavaScript UI things I broke earlier when simplifying signing discovery
Change-Id: Idf4effe3cbf97ec4ccb51197a0b3c857cb7c3569
2013-01-08 19:40:27 -08:00
Brad Fitzpatrick e9acf32d48 App Engine: implement IndexStorage.Get
Change-Id: I7f123df494f32f5f8a28bbd8e4d0aeb11aecce8b
2013-01-08 18:49:54 -08:00
Brad Fitzpatrick f48cb8ff33 App Engine: ContextPool
Change-Id: I8eb3116fc9a06d99a4d14850c8cbcc0bc61da26f
2013-01-08 18:41:51 -08:00
Brad Fitzpatrick 7685c26751 gofmt
Change-Id: I14f5c2129fb50c84ec3977049d1b8c1787636c65
2013-01-08 18:41:06 -08:00
Brad Fitzpatrick 77f4faec7c App Engine: start of writing an IndexStorage impl for datastore.
Change-Id: I03fb6be33b570fa56a4370f6ca86da6858490510
2013-01-08 17:38:56 -08:00
Brad Fitzpatrick 99d7a93896 App Engine: remove a directory that is now just stutter
Change-Id: Iee8847ef670b1dd192f3f05c55f22aab3d71ba95
2013-01-08 16:47:20 -08:00
Brad Fitzpatrick 4eab9f29a6 App Engine: more ressurection work. gets further.
Change-Id: I88a36eb637fe531e2666dea8dc6c94cc442804f8
2013-01-08 16:29:40 -08:00
Brad Fitzpatrick 7b7af4c457 App Engine: compiles and kinda starts again; doesn't work.
With SDK 1.7.4.

Change-Id: Ide16c990fc139e7f450cea508c74f13ed79aac21
2013-01-07 17:20:48 -08:00
Brad Fitzpatrick be8836cad8 appengine: remove all the symlinks.
No longer necessary as of Go App Engine SDK 1.7.4.

Change-Id: Ie724d31ce73fe034c4039dc9068077750b7175a5
2013-01-07 16:49:25 -08:00
mpl 2a961cfc75 auth: add OpSign operation, and fix sigserver with it
Change-Id: Ie1f2b15ee72cf571684d12d8c8743a7164d1d80d
2013-01-04 23:09:55 +01:00
Brett Slatkin ebccaa15bb newui: Fixing up closure annotations
Change-Id: I13c6e9e250221612199d82a3edc642b627acc6e1
2012-12-23 17:55:34 -08:00
Brett Slatkin f2d3cb893a Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 17:52:23 -08:00
Brad Fitzpatrick 3ecd83ba7d newui: wrap camli.js; make permanode creation work again
Change-Id: Ia4ef0428e905006402cd2ef34b819b6584ed8f23
2012-12-23 17:52:23 -08:00
Brett Slatkin eb7cfb5a95 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 17:52:13 -08:00
Brett Slatkin 4a73f954cf newui: Toolbar bigger/smaller hooked up and working
Change-Id: I93f85fcf69948e6f5d8c838c7f1865ed7809236f
2012-12-23 17:52:09 -08:00
Brad Fitzpatrick d037c6e0cc Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 17:33:46 -08:00
Brad Fitzpatrick 939b6f4f4f camli.js: move more stuff to be camli prefixed
Change-Id: I029a47286ed194a3e4d3f9d987a389f6c514abb8
2012-12-23 17:33:38 -08:00
Brett Slatkin 028bcf0232 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 17:27:39 -08:00
Brett Slatkin 80171f6692 newui: Adds a toolbar class with bigger/smaller buttons; they do nothing yet
Change-Id: I8e053062e832239f6c34769faa71b84ab174684b
2012-12-23 17:27:31 -08:00
Brad Fitzpatrick 0e168cecd4 camli.js: kill global disco variable.
Change-Id: I25437bfded3fe9ff704539d929521b1c04f8b133
2012-12-23 17:19:59 -08:00
Brad Fitzpatrick 3c89f7fe97 ui: simplify signing config discovery, clean up logging
Change-Id: I4e9810499b7fe34b1e7d8c32dd612cb1d6e6c348
2012-12-23 17:08:01 -08:00
Brett Slatkin 511eb7c6d4 newui: Links to permanodes working
Change-Id: Iaaf9ca22dbd401d5c0b2e75d0349358f8282ca68
2012-12-23 16:47:03 -08:00
Brett Slatkin b2885cedfa newui: Cleaning up styling of create item
Change-Id: Ie35684c4efba4ce4cec777537b8a0783b51b311f
2012-12-23 16:32:30 -08:00
Brett Slatkin c46875692a newui: Adds a click handler for the create item
Change-Id: I2ff17d3bd08959507b43d04a5f5a1f8d5dbbdd9d
2012-12-23 16:26:04 -08:00
Brad Fitzpatrick 742d81f27c newui: create button style
Change-Id: I273b2c6c892cb0a50b323b07443854e79fc9bf94
2012-12-23 16:23:23 -08:00
Brett Slatkin 1a59cce8bc newui: Obviously, vertical align top was required to make the create box line up properly for inline-block flow
Change-Id: I3243c8bd11753e15515de0e3b73daa87682c966a
2012-12-23 16:05:23 -08:00
Brett Slatkin 6003fc6174 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 16:01:37 -08:00
Brett Slatkin 7b420e7d37 newui: Using spaces instead of tabs in js/html/css
Change-Id: Icd5a74e080f8802d9d5260270205c4eb39f584eb
2012-12-23 16:01:15 -08:00
Brad Fitzpatrick b2b200141f Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 15:59:05 -08:00
Brad Fitzpatrick 2766e2d60f newui: kinda wiring up the create button
Change-Id: Ib114da06c89543fda71104eef49433c100f60112
2012-12-23 15:59:01 -08:00
Brett Slatkin 4736fb57d5 Merge branch 'master' of ssh://camlistore.org:29418/camlistore
Conflicts:
	server/camlistored/newui/index.html

Change-Id: Ib11e629a8281c63b504e5291a191b30dc1bb4a39
2012-12-23 15:55:13 -08:00
Brett Slatkin 455a2e9d23 newui: Do not show focus on BlobItemContainer
Change-Id: I723af0a05ada913c0ae7983761927f9a20e7afe9
2012-12-23 15:53:22 -08:00
Brad Fitzpatrick eaa22b2dbc newui: start of a the creation plus button component.
Change-Id: I208c11be27f879b3ed476d4f2210fed12c8a0cc3
2012-12-23 15:42:03 -08:00
Brett Slatkin 3f69a0eb7d newui: Index page actually loads recent blobs
Change-Id: I888c9500bbcfc608a9a495f38239b8dd5cc64c83
2012-12-23 15:28:11 -08:00
Brett Slatkin dd5e72cb27 newui: BlobItemContainer can show results from ServerConnection recent blobs
Change-Id: I9784dc6462309a08fe7cb0a6ff8fe9283f9967ef
2012-12-23 15:25:39 -08:00
Brett Slatkin 0c02bc194a newui: Server connection mock getting recent blob list, but not hooked into ui
Change-Id: I85952ae039d80d6a8796f0108e080a5d14c56010
2012-12-23 15:18:09 -08:00
Brett Slatkin 0e24b6b25b newui: Adds ServerConnection; basic plumbing through to BlobItemContainer
Change-Id: I86f50c860bbebc1dc1790378cd23b7ae4b286398
2012-12-23 14:36:59 -08:00
Brett Slatkin 25038770a4 newui: Index now renders vault name
Change-Id: I8107a61c4c928729ca751308b3dfe788c7a755d1
2012-12-23 14:21:17 -08:00
Brett Slatkin 410257b70b newui: Adds simplest BlobItemContainer for showing a list of blob thumbnails
Change-Id: I283f955f21076b9a36d763be02c961ffca0475d9
2012-12-23 13:54:42 -08:00
Brett Slatkin 7d3ace5ac2 newui: Showing title in BlobItem thumbnail
Change-Id: Ib9c90cd01a39f109d6870e16d3c6ab2e98c98326
2012-12-23 13:37:42 -08:00
Brett Slatkin 6dfc690cc6 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-12-23 12:43:56 -08:00
Brett Slatkin d4b6e1fc7c newui: Progress on blob_item component; able to show a thumbnail
Change-Id: I01105b8cadbc9fdf26b2d1277260d3afc7f71e8b
2012-12-23 12:43:46 -08:00
Brad Fitzpatrick 9147750d2f newui: automatic deps.js handler
Change-Id: Ic32aca321cca72cb498d7a17c56b9e7d4ac74321
2012-12-23 12:39:15 -08:00
Brett Slatkin 113f5e5f9d newui: Beginnings of Closure deps build
Change-Id: I38165135e6b8cc74e105f43f79934222c33765f1
2012-12-23 11:45:58 -08:00
Brad Fitzpatrick 921176d1ed Add newui index.html
Change-Id: I4967865332e454ca329eb4cdfd2ecb60622bbcdd
2012-12-23 11:06:58 -08:00
Brad Fitzpatrick da813ff7b6 Missing semicolon
Change-Id: Id58835a3e8d37f6a1ee0990a2e1204a5129bbc60
2012-12-22 12:14:05 -08:00
Brad Fitzpatrick 1118e8a52c More index.html work
Change-Id: Ifa57be7d7d1bc27257fe0f8bd90da9c75bdc4dc6
2012-12-11 19:33:15 -08:00
Brad Fitzpatrick 8a8aece4f0 Unify sort/go dropdowns into just View, make some functional
Change-Id: I5da584e550971465d69fbe5155414e83dfdcc8dd
2012-12-11 19:06:47 -08: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
Brad Fitzpatrick 4c923a3b25 Index page (recent.html) toolbar work, mostly non-functional
Change-Id: Idef921bc4f4847ac58d55645a8602b5a8dd9ba5d
2012-12-11 20:45:15 -05:00
Brad Fitzpatrick 5905638de3 Minor JS cleanups
Change-Id: I2d0628a3438ad6298e6c119ff7bd89e954871533
2012-12-11 18:36:34 -05:00
Brad Fitzpatrick 4fbce6f15b Add camliCondCall; use it. For optional hooks.
Change-Id: I63cf8b21d05cd4ff924433e7821dd756976d12ff
2012-12-07 14:09:07 -05:00
Brad Fitzpatrick 31df4a7a01 Add generic file icon.
Change-Id: I23517e6112ddfd7048a575161a7785b73fb7bd0f
2012-12-06 17:36:34 -08:00
Brad Fitzpatrick c368e4a2a8 Click to make new permanode
Change-Id: I78e5f732beb0857eb9958b2a187c68b1a7b68e55
2012-12-06 17:23:34 -08:00
Brad Fitzpatrick 3dc3241ceb use classList add/remove
Change-Id: If521a42bbbe13f61145e001e7897a68a3c491192
2012-12-06 17:18:22 -08:00
Brad Fitzpatrick f9154d8761 Recent page: drag & drop onto big plus tile.
Change-Id: Id78edf9d268df4266576e39ce8207ec06a0b99d6
2012-12-06 17:14:18 -08:00
Brad Fitzpatrick c606e06276 Move more of permanode.js's uploading logic into camli.js, and document it better.
Change-Id: I68098e7bce50286c1621b818a5fd4ede165149a0
2012-12-06 15:58:42 -08:00
Brad Fitzpatrick 0d16c1d290 Remove unused code.
Change-Id: I275f89d1cc493be4938093fc9bacd1618cd5f798
2012-12-06 15:27:07 -08:00
Brad Fitzpatrick 752ed053d3 Add some missing vars
Change-Id: I66b3f6da878d7c9e9cc5bce4cac2ff8d033487c8
2012-12-06 15:08:00 -08:00
Brad Fitzpatrick d1c8a85308 Make the permanode file upload onchange do something.
Change-Id: I7e3ce0257906e733e8f81dd5a94b2eb34361bcc3
2012-12-06 14:32:45 -08:00
Brad Fitzpatrick f7562e033a Remove useless params.
Change-Id: Ia08a8e7282b69010b59561d6faa74adb27c4cd79
2012-12-06 14:19:15 -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 6cb3b6d69f Forgot to make embeds
Change-Id: Ib90ba363ce740549be0cd7e22f20437d1396b0ff
2012-12-01 12:41:00 -08:00
Brad Fitzpatrick 7ebc09ef25 reformat javascript with consistent indent
Change-Id: Idc70d6959b3708bc3b5893dffeaebd9950016ab6
2012-12-01 10:55:22 -08:00
mpl cb0a0951d8 Merge "file embedding: enable compression (mainly for large .js files)." 2012-11-30 17:58:05 +00:00
mpl f7ff5bb17b file embedding: enable compression (mainly for
large .js files).

We will need this when we start getting large js
files generated when using the closure library.

Change-Id: Iaecacd54c3d08637918b1afd420fb90f1a84aabb
2012-11-30 19:03:37 +01:00
Brad Fitzpatrick ed67d8926a Prevent browser range selection 2012-11-28 10:49:22 -08:00
Brad Fitzpatrick af7cce81fb Permanode selection (and range selection, etc) 2012-11-28 10:15:39 -08:00
Brad Fitzpatrick 338fe5b4e8 Prettier recent thumbnails page. 2012-11-25 09:45:30 -08:00
mpl 9b8c0bffc4 ui, recent permanodes: tiled thumbnails style
Change-Id: Ie31753e01a897b72eb7996d93d8ea8cdfe5efa54
2012-11-21 18:48:35 +01:00
Brad Fitzpatrick 306b58afd6 Merge "Modifications allowing /setup to be view on Windows" 2012-11-19 01:16:23 +00:00
Maxime Lavigne 3ec58472db Modifications allowing /setup to be view on Windows
When you go to /setup on Windows, it currently checks
the "localhostAuthorized" function that checks your
UserID with os.Getuid() and than check with the local
and remote address to see if you are allow. In Windows
os.Getuid will always equals -1 and the function default
to unallowed. On darwin, it does check for uid but
afterward only cares if the local and remote addresses
are loopback addresses.

So, I changed this function so that when the os.Getuid
is not avalaible on the platform and returns -1, it does
the same check as in darwin.

I also modified the "isLocalhost" function to use the
helper function "net.IsLoopback" instead of string matching.

Since, I already had parsed addresses and had to call
AddPairUserId, I checked if it wouldn't be simpler to
pass net.Addr directly instead of strings and reconvert
them afterward. It seemed after looking at all the code
that called this function that it simplified calls quite
a bit to do so.

Finally, I modified "netutil.Localhost" for it to return
the first IP it finds instead of the string representation
of the first IP enclosed in square brackets. Since the square
brackets around the IP are only necessary in a TCPAddr, it
would be simplier and more robust for the user to directly
print TCPAddr instead of appending this string to a post.

Change-Id: Id79de6bebd6380f877074211c0d260782058765f
2012-11-18 20:20:25 -05:00
mpl 03a8e7370b default to localhost auth type when generating config for camlistored and clients
Change-Id: I95e74bcde6c1ca564f76e1ed9a916de48c1b6513
2012-11-16 16:49:19 +01:00
mpl d1e5a1d4c6 search UI: find all roots
This change allows to find all roots (permanodes with the
"camliRoot" attribute) from the search.html ui page.
To achieve that, func (x *Index) SearchPermanodesWithAttr
now uses a prefix string without the query part if the
query is "".

http://code.google.com/p/camlistore/issues/detail?id=35

Change-Id: I396fba683e6e7b2296d1f0df8009c07e3c2cd09d
2012-11-14 11:11:40 +01:00
mpl 89baddb2d0 recent permanodes ui: set width and height of thumbnails
http://code.google.com/p/camlistore/issues/detail?id=63

Change-Id: I51d851993e3b14c54685bc4186ea623db1fe6045
2012-11-12 16:25:42 +01:00
mpl def34eff94 display thumbnail on the permanode page if content is image.
The serveDescribe search handler now also checks for the
thumbnails req parameter and uses populateJSONThumbnails.
As a result, the client side can directly use thumbnailSrc
from the json response.

http://code.google.com/p/camlistore/issues/detail?id=62

Change-Id: I4ff606f8d3ef291490f05cabdc66219744b53638
2012-11-10 00:04:44 +01:00
mpl 438ae4ecb4 recent permanodes thumbnails
Change-Id: I140766df4b58853e5bc4358f564cf1cfc807882a
2012-11-09 19:43:18 +01:00
Brad Fitzpatrick 316d3cff31 camlistored: style fix 2012-11-07 17:52:09 +01:00
Brad Fitzpatrick fad4960033 regenerate embedded files with new genfileembed 2012-11-05 18:43:47 +01:00
Brad Fitzpatrick 5033e26980 Add folder icon from Tango. 2012-11-05 17:37:18 +01:00
Brad Fitzpatrick 776cf7ce75 Add a permanode icon (from Tango); rebuild embed files. 2012-11-05 16:32:30 +01:00
Brad Fitzpatrick 73266993ff sigserver: cleanup
Change-Id: I47e840eb30f88289b9567250997ab954b1ccfa83
2012-11-03 21:00:02 +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 13f85afe8c Merge "Modification to allow windows build and deployement" 2012-11-03 13:25:43 +00:00
Maxime Lavigne 5a7510c384 Modification to allow windows build and deployement
Webserver were initialized with "tcp" and ":3179" by default and
listenURL assumed that it would be treated as IPv6 and replaced [::]
by localhost. Host that were listening on IPv4 0.0.0.0 didn't get
the modification.

Receive in localdisk were using link that failed on windows plateforms.

Camlistored didn't use Json Marshaling which caused problem with the
way Windows stores its paths.

Change-Id: I9f62f7d46399c3514707383efcb2752dbaf1f420
2012-10-30 23:17:58 -04:00
mpl 32fdada399 ui: use custom setTextContent to set text with any browser
innerText is not W3C compliant, and does not work on
firefox.
textContent is recommended by W3C, but it does not
work with IE.
setContentText is a generic function that should work
with all browsers.

related issue: http://code.google.com/p/camlistore/issues/detail?id=45

Change-Id: Ie77a96b34b37ffa4af475756158871c7cf271a51
2012-10-29 16:40:36 +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
Brad Fitzpatrick 3098e54163 Merge "Conform to W3C File API" 2012-10-28 12:56:07 +00:00
mpl 909c91a9ea search ui: deleted old/useless TODO
Change-Id: I0f6bbd88d98f9357d4a90e35dd4dc58a5281498e
2012-10-24 17:45:47 +02:00
mpl 94cb8cf05a Be consistent between high and low level configs for https
Change-Id: Ie7e1d9c554e09a34416a2ae3ac9e10f1a2f8fce0
2012-10-18 11:58:30 +02:00
mpl 6ac49843ab fix IPv4 assumption
Change-Id: I334e6ccb5b26a083b55750271262a3469f63e78e
2012-10-16 00:20:57 +02:00
Brad Fitzpatrick 42fb5290fd Merge "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" 2012-10-15 14:33:43 +00: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
mpl 2a434d7276 a couple js bugs in ui home
(showed as errors in ff but not in chromium)

Change-Id: I5df05f72401ad2e8c05160ba2dc2254c8e837f11
2012-10-10 16:04:42 +02:00
mpl 2c27a6686c fix broken symlinks
Change-Id: I4b275d3c796fd034db9d71605848ab327f752542
2012-08-21 14:41:51 +02:00
Amir Mohammad Saied ba22e56262 Conform to W3C File API
Replace WebKitBlobBuilder with Blob() interface implementation of web browser.
Make it working on Firefox as well.

Change-Id: I3b7e677413dbba3aff6b3f3d239f56af07464ab8
2012-08-11 00:53:06 +04:30
Brad Fitzpatrick 11842fcf33 serverconfig: let baseURL and listen be optionally separate 2012-08-04 21:42:10 +10:00
Brad Fitzpatrick 6fe3ae378f fix sigserver 2012-08-03 19:08:36 +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 b2f079f081 handle SIGHUP, restart camli from wizard
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00
Brad Fitzpatrick 1b63c44b4e Update all os.ENOENT references to ErrNotExist. Mostly docs/dead code.
Change-Id: I2bb4d5a9d9c610e8dce2309335d06046dbb1e049
2012-05-13 12:06:21 -07:00
Brad Fitzpatrick 87059405ea simplify deref expression
Change-Id: I1738c7c47e79b460f3c13626b1af9e96eb26f73f
2012-05-14 01:40:05 +10:00
Brad Fitzpatrick f70cbb4c05 check MkdirAll error
Change-Id: If8e32c04e5ef71ffc1fd173cbb3626d8c978e3c2
2012-05-14 01:37:46 +10:00
Brad Fitzpatrick 610e708924 fix more references to lib/go/camli
Change-Id: Ic35c67b0255d713185e8c77fdeb91c17c79a11c7
2012-05-14 01:07:13 +10:00
mpl 2a844730b3 support for published entities in genconfig and in wizard
Change-Id: I1768dac9628edb59cf0b987e9054b920d234b36b
2012-04-23 21:00:05 +02:00
Brad Fitzpatrick b76b58ea2a camlistored: don't block server start-up on opening URLs
Change-Id: I4a850fe7b46e74a0804b89b20b98ea351f44dcdd
2012-04-20 11:59:58 -07:00
mpl 8d927b5914 open root page in browser when camli starts
Change-Id: Ida4ffa8ee34e6fd86782f8f61c43eecedc074892
2012-04-16 16:08:36 +02:00
mpl f7ab75d7b3 rm TODO: +localhost already done by Brad
Change-Id: I1762d3a589163d8098a4f5714ecf9943ee9fa39f
2012-04-16 01:22:05 +02:00
Brad Fitzpatrick 92f5835bb4 camlistored: make sqlite a build option.
Change-Id: Ib3624f162aae2130e524cf6a04c3f0fa8f07a01c
2012-04-13 16:16:24 -07:00
Brad Fitzpatrick 71ee67264d osutil: add IdentitySecretRing accessor
Change-Id: Idcb7a62530292eb3e0a98c798dc86a985fc491f1
2012-04-12 16:54:57 -07:00
Brad Fitzpatrick 029d66fa9e In default config, allow localhost access for auth also.
Change-Id: Ie3fc2f3c44d7fc17a367f6a456c6db6511d08f33
2012-04-07 19:02:31 -07:00
Brad Fitzpatrick ce779cd0a7 add appengine build tags, so 'go build ./server/...' works.
Change-Id: I9bbcfe3d4c99de623b420a8559edbd73ed4739d3
2012-03-26 14:02:48 -07:00
Brad Fitzpatrick 0339f75162 move sigserver up a directory.
Change-Id: I219472713dfc2adfa34221a8689d9883c0e90a24
2012-03-26 14:00:43 -07:00
Brad Fitzpatrick a5d41f27c4 sigserver: update for Go 1
Change-Id: Ia8d3bd2992ba7a2ab704f0005a4e9b8274c0fc29
2012-03-26 14:00:07 -07:00
Brad Fitzpatrick 10cf23c700 Get the MySQL indexer working again.
It now uses the generic indexing layer, rather than its own schema.
Also, move it under pkg/index/, like mongo.
Also, link in mongo to the main binary.
Not using the tests yet (leaving for mpl :))

Change-Id: I47a2203ca6c0b5244cd458aedec46227c4363c62
2012-03-26 13:57:53 -07:00
Brad Fitzpatrick d8fe21b89c appengine: +build lines earlier, where they work.
this code still not updated for Go 1, though.

Change-Id: I2c3c9c6d236906fe945684307c71ab2e9702861b
2012-03-26 11:11:57 -07:00
Brad Fitzpatrick e1dc4f7337 update to Go 1
Change-Id: Ib1e3b4e5879879cc6ff370b69799c9bf1d2986ec
2012-03-26 11:05:23 -07:00
Brad Fitzpatrick 125c33f019 camlistored: auto-generate a secring/keyId for new users, without gpg
Change-Id: Ib653f9cb5fa0f5e4730854dfaea6c4654f94f377
2012-03-19 21:31:20 -07:00
Brad Fitzpatrick 5fc47dab41 appengine: start of bringing this server back to life.
Change-Id: I5d0df4c14646f3f189cda1abe25fae5da92d260f
2012-03-19 19:04:41 -07:00
Brad Fitzpatrick 73cd34a6a0 serverconfig & camlistored: simplify low/high-level config bootstrapping.
Change-Id: I22e003ff2eaa29b09a5c4cbb59afa1ca9bd624df
2012-03-19 13:09:00 -07:00
mpl 7f630657d5 generate low level configuration
Change-Id: I43d1610bdc386954dea724b4b38e184bf16e2d34
2012-03-16 00:05:24 +01:00
Brad Fitzpatrick a1e4d063f4 camlistored: move TLS setup to a function.
simplifies main.

Change-Id: If69523888102df2268c5b7c4e02e13afa91a7997
2012-03-05 07:17:58 -08:00
mpl 882f2d5eef generate default config for user when needed
Change-Id: Ifb5897b38cd72f18ff7ce1e9c3a8c23ee8751ba1
2012-03-05 00:04:35 +01:00
Brad Fitzpatrick 1642f9116c style
Change-Id: If0022de555bc444e7938693a5d1aa9a65a6d90aa
2012-02-29 08:01:49 -08:00
Brad Fitzpatrick dbf7e5e1e9 server/camlistored/ui: embed css too
Change-Id: Ic02b939dd59a4f9378719f18cfe2b5bc50545aab
2012-02-29 08:01:32 -08:00
Brad Fitzpatrick 8408c4f9b8 server/camlistored: link in pkg/index again.
Change-Id: Ie60572c1a5d4db4c90f93d0033d2fcbf67431d2f
2012-02-28 23:16:41 -08:00
Brad Fitzpatrick a98c59f082 include file modtimes in filembed
Change-Id: I9255071c163664bd9b00786df65e630668e227d0
2012-02-28 22:49:52 -08:00
Brad Fitzpatrick f4dd857477 checking in auto-generated zembed_*.go files 2012-02-28 14:51:21 +11:00
Brad Fitzpatrick 64bbffc3b5 move fileembed from misc 2012-02-28 12:45:46 +11:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00
Brad Fitzpatrick 079dd35213 Merge "tag (and non fuzzy) search on the home page" 2011-12-04 23:30:48 +00:00
mpl b630785f3b tag (and non fuzzy) search on the home page
Change-Id: I36f48bf59dcb444455e904445e28a1da3681dc36
2011-12-05 00:23:50 +01:00
Brett Slatkin 3941dec356 AE: Beginning to hook up syncer; needs refactoring for background tasks
Change-Id: I809cfbc98f7ec58aca58db82dc6ce27b28b7fd65
2011-12-04 15:19:28 -08:00
Brett Slatkin 894c3c66ae Moves sync module into lib/go/server
Change-Id: Iccf8674712f4ecb70d9eb28e8316d151a88e842f
2011-12-04 14:35:26 -08:00
Brett Slatkin 9bad75cb95 AE blobserver working locally with dev-camput
Change-Id: I3dde1bf7fe3cb15e49f2b0ec4a99f85a24497f32
2011-12-04 14:00:38 -08:00
Brett Slatkin 0d32921bb8 AE blobserver: Fixes config and auth module.
Change-Id: I198a137050516db530acecdacca117c918cb0fa6
2011-12-04 13:29:15 -08:00
Brett Slatkin cba9c3638e Removes the old busted GAE/Java sigserver code
Change-Id: I6f339d3e9770dd38a51b359e6011d0ab94eafcf2
2011-12-04 13:13:59 -08:00
Brad Fitzpatrick b32c267fa1 Merge "App Engine: Tries to implement RemoveBlobs" 2011-11-30 16:36:14 +00: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