Commit Graph

3816 Commits

Author SHA1 Message Date
Brad Fitzpatrick b7230b2897 client: add CAMLI_DEFAULT_SERVER env option for selecting default server
For demos, when we want to show using camput/camget but select the devcam server
instead of our production servers.

Change-Id: Ie2adfd4f80df3119a705b51bb9736c3b66612d1c
2014-01-11 10:41:36 -08:00
Brad Fitzpatrick e808a81beb Merge "Reuse memoized mutDirs and mutFiles." 2014-01-10 17:27:17 +00:00
Brad Fitzpatrick 2f022a4444 Update cznic/kv to 1a1aa67018afcbe34b1448bae94661feab6c5ecd
Fixes camlistore.org/issue/332

Change-Id: Ie2de810b4572077263418fc6fdd17e2508ff7b24
2014-01-10 09:22:04 -08:00
Dustin Sallings 333cdce979 Reuse memoized mutDirs and mutFiles.
This provides a considerably improved experience for from a single FUSE
client, but not for free.

New dirents introduced outside of FUSE will be visible on the normal
refresh interval.

Removals outside of FUSE are tricky because it's not possible to tell
the difference between a file that was locally created and hasn't made
it into the index yet from a file that was deleted remotely.

Specific dirents that change permanodes outside of FUSE are replaced.

Dirents that change properties outside of FUSE without changing
permanodes (e.g. content, etc...) are never picked up.

Change-Id: I7cc8eaea5951644809053fc97c28455e96508bd4
Fixes:  http://calistore.org/issue/328
2014-01-09 19:58:43 -08:00
mpl a78b2005d4 Merge "client,camget: add -cert to specify trusted cert with share URLs" 2014-01-09 20:07:33 +00:00
mpl b5d29a181f client,camget: add -cert to specify trusted cert with share URLs
http://camlistore.org/issue/330

Change-Id: I6d060fe4804d6cf9baa3686243e3ab93839ec9ac
2014-01-09 12:05:38 -08:00
mpl 7c4d20c6d8 Merge "third_party: import github.com/davecgh/go-spew at 65ca732a33a40c2a5b9e036f236f975e7e85cf6c" 2014-01-09 19:50:26 +00:00
mpl 2b6bde1be3 third_party: import github.com/davecgh/go-spew at 65ca732a33a40c2a5b9e036f236f975e7e85cf6c
http://camlistore.org/issue/288

Change-Id: Ie90c39d2ca25e95b98441ecf1ee030fbef698ced
2014-01-09 11:40:54 -08:00
mpl 52a16e3483 Merge "pkg/client: auth and (camtool) TLS fixes" 2014-01-09 19:24:17 +00:00
mpl 1db2e7eaf3 pkg/client: auth and (camtool) TLS fixes
1) disallow auth from env when not in dev mode or on android
2) allow insecureTLS with flag in debug mode
3) set transport so that insecureTLS or trustedCert modes work

http://camlistore.org/issue/325

Change-Id: I6d8056bb75ffff5f002dfe9bd631ae996dc4e5ef
2014-01-09 11:23:40 -08:00
Brad Fitzpatrick 686d4ea445 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-09 11:21:17 -08:00
Brad Fitzpatrick beac5cd5f5 syncutil: fix Group.Errs doc 2014-01-09 11:21:05 -08:00
Brad Fitzpatrick 4365f69330 Fix data race in reindexing.
See https://camlistore.org/issue/331

Change-Id: I210ae4e1779b7fe248196152a6acbc5728051249
2014-01-08 20:36:17 -08:00
Brad Fitzpatrick a00d964169 Partial fix for cznic/kv Close race. See camlistore.org/issue/332
And https://github.com/cznic/kv/issues/17

Change-Id: I1c3170f8a81f687715ccc1f172e41767c4c81893
2014-01-08 20:34:34 -08:00
Brad Fitzpatrick 61cbb483f2 throttle: actually compile.
wth did I do?

Change-Id: Ia5cb96f3e3b33e254b5a44ddb5ea351f462870e8
2014-01-08 19:55:24 -08:00
Brad Fitzpatrick 14ce902c47 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-08 17:41:03 -08:00
Brad Fitzpatrick 82041c7683 throttle: implement Read throttling TODO
Change-Id: Ia576dd694db48f85e43fdbded5000867bfde7b1a
2014-01-08 17:23:31 -08:00
Brad Fitzpatrick 3237139992 Merge "pkg/client: better error handling propogation." 2014-01-08 18:03:33 +00:00
Brad Fitzpatrick ebcfb0270e Merge "Fix the weird flicker on mouseover of thumbnails." 2014-01-08 18:02:16 +00:00
Brad Fitzpatrick ded498a5fc Merge "Remove unused NewSetAttributeClaim in RunCommand" 2014-01-08 18:00:25 +00:00
Brad Fitzpatrick 186de8fb5e C+A: add Mateus Braga (Individual CLA)
Change-Id: I3f4d340944ae9869200df2863f41b73934dd7e4e
2014-01-08 10:00:09 -08:00
Mateus Braga 3d4ccbe0f4 Remove unused NewSetAttributeClaim in RunCommand
Change-Id: I092020f675296e729e3dfe15d97a42682dd13ab9
2014-01-08 11:11:57 -02:00
Aaron Boodman 98866f426d Fix bug where you have to press back twice to get out of detail view.
Change-Id: Ib2a35b3eb1c92e401cf7826386e174ac6f875339
2014-01-08 03:03:11 -08:00
Aaron Boodman 4491995fad Fix the weird flicker on mouseover of thumbnails.
The effect you were seeing was a difference between hardware and
software compositing paths.

Chrome was promoting the content area to a hardware-accelerated
layer during animation, but dropping it back to software after the
animation was complete. There were little animations for the
checkmarks that were causing us to flip in and out of hardware mode
as you moused around.

Solution: force us to stay in hardware mode the entire time the
nav is open (translate: scale3d() is a well-known way to do this).

Bonus: the scaled text rendering looks better in hardware mode.

BUG: https://code.google.com/p/camlistore/issues/detail?id=284

Change-Id: I62f6c86d1ae12ba043f34c0659633bb5195dc50c
2014-01-08 02:42:10 -08:00
Aaron Boodman 2bdcf0e2d4 Don't do pushState() navigation on middle click
Change-Id: I549c5a49a3e68384162d919b412c809dcf0fa774
2014-01-07 22:40:14 -08:00
Aaron Boodman ea40141be3 Make the order of require() calls consistent.
Change-Id: If9180032d4ff6c49647613e67044ea078e0638a2
2014-01-07 22:12:28 -08:00
Aaron Boodman 79ff81a5a6 Use the "cam" prefix for all camlistore JavaScript identifiers.
Change-Id: Ia3d375abf4a4568ab0e83997e900a9d2aeae66c4
2014-01-07 21:47:45 -08:00
Aaron Boodman ff2600216e Convert the rest of the files in server/camlistore/ui to tabs.
Change-Id: I80fdb25b831c8ea9e780d9e104716c6756f0661c
2014-01-07 19:55:48 -08:00
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
Bill Thiede fc3d238478 pkg/client: better error handling propogation.
Convert non-200 HTTP responses into proper error objects returned to
caller.

Change-Id: Ib04fb8cf2e04d8ae85908233adc5f9e5f7b32d01
2014-01-06 21:06:01 -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