Commit Graph

3787 Commits

Author SHA1 Message Date
Aaron Boodman 6e5ca7b445 Merge "Convert some spaces to tabs." 2014-01-08 03:39:00 +00:00
mpl 4862e65af3 Merge "pkg/client: fix method to find a server in the config" 2014-01-08 03:06:25 +00:00
Aaron Boodman bba6eed13e Convert some spaces to tabs.
Change-Id: I2aadb495326665544bcabf90299cad8d70b08eee
2014-01-07 19:02:18 -08:00
mpl 3f13d1a043 pkg/client: fix method to find a server in the config
http://camlistore.org/issue/325

Change-Id: I4aa6d5103848b73ed169ab7d7de3a60a33723b79
2014-01-07 18:52:48 -08:00
Dustin Sallings edc655a27a Reuse memoized roots on refresh
This is somewhat related to camlistore.org/issue/328

Change-Id: I6bf8d70a42fca886f6b004d65c346be7c0a3e61e
2014-01-07 14:46:08 -08:00
Dustin Sallings c2500c5444 fs: implement {mutFile,mutDir}.Access
On at least OS X, the stat(2) call will use an existing node without
issuing Lookup.  This introduces a filesystem inconsistency where a
delete removes an entry for further requests, but FUSE's cached access
of the node is still used for at least stat.

There's a call to Access directly against the node as retrieved from a
prior Lookup.  By invalidating the nodes when they're deleted and
verifying this at Access time, we keep things more consistent.

This isn't exactly camlistore.org/issue/324 as described, but it was
causing one of the tests to fail on OS X

Change-Id: Ib90a1de79d6d3960f96bac5b4fb448c952c4ba66
2014-01-06 23:47:28 -08:00
Dustin Sallings 8a5ce9c6a5 fs: memoize roots children
If we ever return a particular value for a root, we should continue to
return the same value to provide a consistent view.

camlistore.org/issue/324

Change-Id: I7cfad02ad742b0e70e333f70779d64ba163d68a6
2014-01-06 23:47:28 -08:00
Dustin Sallings c39fb7136d fs: logging cleanup
Change-Id: I9413ce5397453cb91c9293de4dd7dce62f79ccfe
2014-01-06 23:47:28 -08:00
Dustin Sallings 214aaf2587 third_party/fuse: remove verbose xattr logging
Change-Id: I620cf6829e6059196f2368392d8882227dd7edbb
2014-01-06 23:47:28 -08:00
Aaron Boodman 8a970d23f0 Merge "Add jstests.go, a unit test harness for JavaScript files." 2014-01-07 04:26:16 +00:00
Aaron Boodman 53e12a740c Add jstests.go, a unit test harness for JavaScript files.
Change-Id: I3d755f0001c0528f5db2dbe8cdfc10fa60443c89
2014-01-06 20:21:43 -08:00
Brad Fitzpatrick 70c7eff1b4 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-06 20:01:11 -08:00
Brad Fitzpatrick b84c2457ae Add integration test for Android camput environment.
Fixes camlistore.org/issue/323

Change-Id: Iefa5b073aa6d6b00899e7e17afb3bcf2f18ad6b3
2014-01-06 20:01:07 -08:00
Brad Fitzpatrick 08dd9561f9 In stat and upload handlers, return empty lists instead of null.
Fixes camlistore.org/issue/326
2014-01-06 16:30:59 -08:00
mpl a9ff17ca81 client: log.Fatalf typo
Change-Id: I2bffa2b6a9de351ed0f8ad0b13c1e1f62212c2ea
2014-01-06 10:46:07 -08:00
Brad Fitzpatrick c4c3d2003a website: move blobserver example root files to new localdisk layout
Change-Id: I10a7276d61b3d30f270fbdf37df6285a501bbc25
2014-01-06 08:11:41 -08:00
Brad Fitzpatrick 34ed712a4a Move defaultMaxResizeBytes to pkg/constants
Change-Id: Ibb5f82b6f33a4417649f1538a996f1fe7eac885e
2014-01-06 08:08:47 -08:00
Brad Fitzpatrick d21aa1dba2 year++
Change-Id: Ib5e17c39d3178357e1c18c4407ad45e91170ef16
2014-01-06 08:05:12 -08:00
mpl b7cee3c6ce clientconfig: forgot to git add it with bf8c463d0a
Change-Id: I098fd8c3297c48f0800f5753d220fe706601a16b
2014-01-06 08:00:35 -08:00
Brad Fitzpatrick 0dcc22b4f5 Merge "Fix Fetch -> FetchStreaming conversion" 2014-01-06 15:53:09 +00:00
Tamás Gulácsi 36643ff986 Fix Fetch -> FetchStreaming conversion
As blob.fetcherToSeekerWrapper.Fetch erroneously asserts that FetchStreaming
returns a ReadSeekCloser everytime, it had to be changed.

Move MaxBlobSize from blobserver to constants (new package).

Change-Id: I4b4f22c302cbec84d77d21454e0c9e8aebdf73e5
2014-01-06 18:56:39 +01:00
Brad Fitzpatrick ecff1ddeb9 Merge "pkg/server: set thumbnail RAM limit per-handler." 2014-01-06 15:41:00 +00:00
mpl 10d863e323 Merge "pkg/client: multi servers config" 2014-01-06 07:24:52 +00:00
mpl bf8c463d0a pkg/client: multi servers config
http://camlistore.org/issue/309

Change-Id: I22bbbf6a808a772272f153b2535d693bd986d13a
2014-01-05 23:19:43 -08:00
Brad Fitzpatrick dde76aec90 Remove some old blobserver test stuff.
Change-Id: I9eebaf28aa1da14633e99be25e86ee2aba5b1e80
2014-01-05 22:50:26 -08:00
Brad Fitzpatrick 9a993218e5 Merge "Change the upload protocol." 2014-01-06 06:24:48 +00:00
mpl 9902305735 Merge "client: improved ignoredFiles" 2014-01-06 04:57:30 +00:00
mpl 7c21c617b6 client: improved ignoredFiles
also changed osutil.HomeDir for windows so it looks like an abs path for
filepath.IsAbs

http://camlistore.org/issue/290

Change-Id: I1b32c1c13e7d23a421a6da2c0f9d6b8b07f48b8d
2014-01-05 20:53:46 -08:00
Bill Thiede 56510593ff pkg/server: set thumbnail RAM limit per-handler.
Move from one pool for all thumbnail resizing to per-ImageHandler
instace.

Uses the value of "maxResizeBytes" if specified in the "handlerArgs"
section of a "publish" or "ui" handler's low-level config.

If we end up wanting to share pools, i.e. if all published
handlers should share a pool, we'll need to do a bit more work.

Implements suggestion from https://camlistore.org/r/1803 review.
Further improves on https://camlistore.org/issue/316.

Change-Id: Ia93fad119b546064173ac3e2c7f0ab8509744628
2014-01-05 17:49:59 -08:00
Brad Fitzpatrick f7583c6875 Merge "search: Add ValueMatches{Int,Float} to PermanodeConstraint." 2014-01-05 18:35:06 +00:00
Brad Fitzpatrick 85d2675361 Merge "Update Closure to ab89cf45c216 (Dec 15, 2013)." 2014-01-05 07:13:41 +00:00
Bill Thiede 1e447b0f69 pkg/server: RAM based concurrency limiter.
The RAM limit is based on the expected amount of allocations not the
measured allocation.

Issue https://camlistore.org/issue/316

Change-Id: I3ccff6ddf880f3f9a90f6c27f15f9662fad02712
2014-01-04 23:05:18 -08:00
Aaron Boodman a9b0e80c65 Update Closure to ab89cf45c216 (Dec 15, 2013).
I meant to do this in Camlistore commit cc562aff, but that one only
updated to 1389e13 (Jan 23, 2013).

I was confused because the version of third_party/closure/updatelibrary.go
that was checked in prior to cc562aff did not correspond to the version of
Closure that was checked in. So when I ran updatelibrary.go, I got changes
and didn't realize I had to change updatelibrary.go too.

Change-Id: I3ba43a540a62caedbf7570a6d55382bd39a426dc
2014-01-04 21:42:23 -08:00
Daniel Erat 396c8a6211 search: Add ValueMatches{Int,Float} to PermanodeConstraint.
Adds constraints for int- and float-valued attributes.

Change-Id: Ie8354f8ea12f604b45cf2fa6a7fb45170bab7e46
2014-01-04 20:43:32 -08:00
Brad Fitzpatrick 91f8b2ad49 Change the upload protocol.
No more dynamic upload URL, which trips up half our new users behind
reverse proxies when the camlistored process doesn't know its
forward-facing URL.

The original camlistore stat + upload protocol was influenced by App
Engine's limitations at the time, and some of our indecision about
where the Camlistore design is going. We understand the Camlistore
design now, and App Engine's former limitations are gone. Time to
clean things up.

More REST-y now too.

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

Change-Id: I92c6552f830b925cef379c204a982a2213bf2f4b
2014-01-04 20:24:58 -08:00
Aaron Boodman 9c45ab99ad Merge "Add link to relevant bug about aspect ratio" 2014-01-05 03:16:57 +00:00
Aaron Boodman 077664455d Add link to relevant bug about aspect ratio
Change-Id: Ia2c71a718eec45113e4ef0f159ecea6a900b673d
2014-01-04 19:16:24 -08:00
Aaron Boodman 2d24658a48 Merge "Change describe depth in web ui for search queries from 3 to 2." 2014-01-05 02:56:04 +00:00
Aaron Boodman 3c7d3d2af5 Change describe depth in web ui for search queries from 3 to 2.
As far as I know, the code never uses the third level.

This reduces a particularly bad example of https://code.google.com/p/camlistore/issues/detail?id=319 from returning 1.8MB of data to a svelte 1.2MB.

Change-Id: Ibfe4ca3f1b175cd316f6f603950991c1a2fc8577
2014-01-04 18:54:05 -08:00
Brad Fitzpatrick ef21d906e6 Merge "search: Add StringConstraint.CaseInsensitive." 2014-01-05 02:44:19 +00:00
Daniel Erat 0ea90ebec3 search: Add StringConstraint.CaseInsensitive.
Provides support for case-insensitive string comparisons.
The implementation needs work (e.g. substring searches do
potentially-large allocations).

Change-Id: I30f068094b4617b81aee2e8981f87f6ec2bc0000
2014-01-04 18:29:52 -08:00
Brad Fitzpatrick 7a2f140aa4 C: add Aaron Racine (Google CLA)
Change-Id: I74507840247790509a53082513e577617fa12858
2014-01-04 18:07:45 -08:00
Brad Fitzpatrick 00e111a4b6 Merge "camput: Skip base directories where IsIgnoredFile() returns true." 2014-01-05 02:00:35 +00:00
Brad Fitzpatrick cdd7b97d32 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-04 16:37:49 -08:00
Brad Fitzpatrick 3e725e2a98 Change self-signed cert fingerprint to 80 bits of SHA-256.
More secondary preimage resistance. Also better docs and less vague and less promoted Android
UI.

Feedback from Adam Langley, but likely misinterpreted.

Change-Id: I3bf1029b6fc07c0b8dab2af44926aa87b0d4cbad
2014-01-04 16:37:33 -08:00
Nick O'Neill 200c108fad Merge "Some additional fixes from a previous loading commit" 2014-01-05 00:25:23 +00:00
Aaron Boodman af621e4567 Merge "Make some updates to the web application styleguide that have been simmering for a few weeks." 2014-01-05 00:21:48 +00:00
Aaron Boodman 7c9b86de9e Make some updates to the web application styleguide that have been simmering for a few weeks.
Change-Id: I98196f14439b5d6f2c6af53eb1bf3508c6dbc591
2014-01-04 16:20:57 -08:00
Brad Fitzpatrick 2002359f73 Merge "search: Fix ZeroMax ValueNum permanode queries." 2014-01-05 00:07:55 +00:00
Daniel Erat 945073baf9 search: Fix ZeroMax ValueNum permanode queries.
Searching for permanodes with zero values for an attribute
returned no results due to a check that at least one value
matched. Only perform that check when a value constraint was
provided.

Change-Id: Ia25a595e4598fe682f2a85babca0b8438681a210
2014-01-04 16:05:54 -08:00