Commit Graph

290 Commits

Author SHA1 Message Date
Brad Fitzpatrick c4dd036203 root: put sighelper disco in the main disco document
Change-Id: Ic5ae125f01320fcec6ff23e56b11c75c41c4e94b
2012-12-23 16:58:26 -08:00
Brad Fitzpatrick a40078e3b6 client: fix test failure
Change-Id: I811b572c79e7e3797a23376bf01b90c49382d7fd
2012-12-23 14:20:15 -08:00
Brad Fitzpatrick 0cbf38b29a root discovery: drop var, so things are on window.
Change-Id: Ib84203a1135d3254d1596d7d82ec1389f0a94475
2012-12-23 14:19:14 -08:00
Brad Fitzpatrick 8931c24e4c root discory: allow 'var' parameter to set a variable.
Change-Id: Ic1d24f16b9b09508aec0d10574a4500b61277b83
2012-12-23 14:17:14 -08:00
Brad Fitzpatrick 9147750d2f newui: automatic deps.js handler
Change-Id: Ic32aca321cca72cb498d7a17c56b9e7d4ac74321
2012-12-23 12:39:15 -08:00
Brad Fitzpatrick 8464059cab newui: make index.html work
Change-Id: If32179fcac1e1725c47885bd609fd05c084bbc20
2012-12-23 11:01:19 -08:00
Brad Fitzpatrick 896dba2cc8 camsync, client: check size consistency in sync pass too.
Change-Id: I4509f1799bbe578d76b94285309c5ad364311a42
2012-12-23 09:22:25 -08:00
Brad Fitzpatrick 0b022b433a camput, schema, client: query server for dups before uploading, like the JavaScript UI.
Change-Id: Id12f78cf2a095adcfad90ca4c6416bb80b6e9b14
2012-12-22 22:48:21 -08:00
Brad Fitzpatrick 2fe555aeb9 s3: remove debug logging
Change-Id: Idd4c3538362dd14b59ae6b150992d806ae7ff6b8
2012-12-22 18:45:27 -08:00
Brad Fitzpatrick b32008ed34 camput, client: start of making camput file check searchRoot for wholedigest dups
Change-Id: Ic014ef54705b14482c42936bf6957dc87efa1cf7
2012-12-22 18:42:35 -08:00
mpl a536e2a6d3 Merge "camput: Preparation for vivify." 2012-12-23 00:11:08 +00:00
mpl 6cb7ecd644 camput: Preparation for vivify.
Refactor writeFileMapRolling so we can write the chunks,
then the top level contents, separately.

Change-Id: Ib56cd4b2aa295516fafbe7072ad5b352d1aaaa89
2012-12-23 01:15:29 +01:00
Brad Fitzpatrick a03c25c74c client: qualify channel directions
Change-Id: I49d7c9d18b256beb1fbc7af2a33da94511cf97a2
2012-12-22 14:23:26 -08:00
Brad Fitzpatrick d0af61a04a Fix bugs in enumerate handler and s3's MaxEnumerateConfig.
Change-Id: Ib9cd52fe7d015a8c70416ec67ff6fd99a7a03d24
2012-12-22 13:50:55 -08:00
Brad Fitzpatrick c83e29cfde s3: improve bucket enumeration
Change-Id: I65ed4a6575250bb2005215df461ada64ac20e41e
2012-12-22 13:50:18 -08:00
Brad Fitzpatrick d2b20395e9 localdisk: Ignore 'cache' directory when enumeration.
Change-Id: Iebc3d71b13f21e6f9a80c8bbfccced5fe6bcfb1d
2012-12-21 17:48:07 -08:00
Brad Fitzpatrick cc353f5748 client: case style
Change-Id: Ie72ebd19c09a863ba1be00fb35904daf867daa14
2012-12-21 17:00:24 -08:00
Brad Fitzpatrick 21d142e538 s3: some work on Buckets, add TODO
Change-Id: I183a85a0b9639790adec025830dae2f276006290
2012-12-21 16:23:19 -08:00
Brad Fitzpatrick 5aefa82fab genconfig: s3 config support
Change-Id: I6681d8dffee01ac4a50118377b4172fd2f331049
2012-12-21 16:13:36 -08:00
Brad Fitzpatrick ff960933e6 serverconfig: minor cleanup
Change-Id: I6e25c4392303200c3bbe33b3d32239491436cbb0
2012-12-21 15:47:08 -08:00
mpl 938c93ac45 cleaning up newui serving a bit
Change-Id: I5acea38112f1aa858631ce00581f45db356dd3a8
2012-12-13 23:37:38 +01:00
mpl 36db66cbb7 better regexps to match newui and closure urls
Change-Id: I7888cc836705b014fdfe711f397dd3d66c4cf6d9
2012-12-13 17:00:20 +01:00
mpl cd32b0b5b9 move findGoPathPackage to osutil, and use it to define closureDir
Change-Id: I838a2e665591d13ecf3bb2689df1931d7e14465b
2012-12-13 12:31:56 +01:00
Brad Fitzpatrick 7ca806661d Connection throttling for dev-server.
And on by default, to keep us honest.

Change-Id: Ic4c1fdfd06b54ec9108bb13c05714e9a81b642cd
2012-12-11 20:36:42 -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 e16153306a Quiet some image log spam; behind a flag now
Change-Id: Ib43ae05cd98d156e2755536136a991c540d9c97c
2012-12-06 18:01:47 -08:00
Brad Fitzpatrick 682390dffa Add a GIF mime type, TODOs, add camdebug mime command.
Change-Id: Ic8930d4250dec30ed8c9a056c1cecd70cc447f9d
2012-12-06 17:53:03 -08:00
Brad Fitzpatrick 31df4a7a01 Add generic file icon.
Change-Id: I23517e6112ddfd7048a575161a7785b73fb7bd0f
2012-12-06 17:36:34 -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 2f072dfc20 auth: fix nil dereference crash
Change-Id: I4552829da795236b9c875a753b6f1d710066d89a
2012-12-01 10:54:14 -08:00
Brad Fitzpatrick 48bd05ad8d Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-11-30 22:10:06 -08:00
Brad Fitzpatrick 43e240f0f6 Fix mymysql for Go 1.1; see https://code.google.com/p/go/issues/detail?id=4476
Change-Id: I6b5d66b68715f7d71ce665dbf90dfc0d4eefab5a
2012-11-30 22:09:51 -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 e9806cf4a7 reduce some logspam. still a fair bit around images 2012-11-28 10:14:37 -08:00
mpl f26cd134de Do not error out when "Orientation" tag is absent
Change-Id: I76cfc8066986614c5690f0e27b217fb96b52ae36
2012-11-19 23:40:26 +01:00
mpl fa1269da45 import github.com/camlistore/goexif as a third party
Change-Id: I34842677f4d9335df2478692e0b0d169d00d0942
2012-11-19 23:04:04 +01:00
mpl fbead58f92 fix tests for images and netutil
Change-Id: I89d978ce25cc8748ffab54aa3112e6b854f73b85
2012-11-19 19:52:06 +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 3117265b61 bugfix in auth; mode was not set by config in localhost case
Change-Id: I5349af00d7629ca77de73dd886ba44d6bbc56da0
2012-11-16 18:12:41 +01:00
mpl fca3f33449 Merge "search UI: find all roots" 2012-11-16 01:03:54 +00:00
mpl b204d521c3 Merge "fix serverconfig tests, broken because of discovery move from ui to root" 2012-11-16 00:57:24 +00:00
mpl 4a97ef3bb1 Merge "small fixes subsequent to brads comments on 94541905ffe9e92e97125229331ca9a25305381a" 2012-11-16 00:55:29 +00:00
mpl 0824bc7f7c Pointer to minux codereview to do the restart on darwin
Change-Id: I077803b367b543f998d5d25026db2be477963bf8
2012-11-15 18:57:53 +01:00
mpl 535b856e1c small fixes subsequent to brads comments on 94541905ff
Change-Id: I7493cc715f85d146049a452e9808814a13f7468b
2012-11-15 18:42:19 +01:00
Brad Fitzpatrick 3fe746e3aa Merge "find the path to the executable of the running instance to restart camli properly" 2012-11-15 16:45:10 +00:00
mpl 94541905ff use pkg/images (EXIF help) for thumbnails in ui
Change-Id: I60f0102efd1eb5b1c9ca070fe959b499ed8f7c5a
2012-11-15 01:53:58 +01:00
mpl 62b5da6f99 find the path to the executable of the running instance
to restart camli properly

This change adds the functionality to find the path to
the currently running executable, so that camlistore
can be restarted without à priori knowledge of cwd.
It should work for linux, netBSD and freeBSD, and it
might work for openBSD.
The naive (os.Args[0]) approach is still used with
darwin.

Reference: https://codereview.appspot.com/6736069/

Change-Id: Icc9fc2b4e1b3542cfbe6c457c1fefbe762eff2f1
2012-11-14 16:10:50 +01:00