Commit Graph

5475 Commits

Author SHA1 Message Date
Mathieu Lonjaret cbec324c6a Merge "pkg/server: added help handler" 2015-05-28 13:30:25 +00:00
Mario Russo 7b1903d5b1 pkg/server: added help handler
- Available at '/help/'
- Loads and parses server config upon init and generates the necessary client config for access
- Links to 'Downloadable Tools' are not functional (task is not yet completed)
- A link was added to the default server page as well as a 'Help' option to the Piggy menu

Issue: #536

Change-Id: I10629de034c908ebc76f6feacbbfca1df7bf1c2b
2015-05-28 10:02:17 +02:00
mpl 177cf52a37 Merge "UI: document components lifecycle" 2015-05-27 21:20:31 +00:00
Mario Russo 01cddcc8d5 pkg/search: fix null "files" in file search response
The "files" field of a file search response was always non-null (empty JSON array in case of error or no result).
This behaviour was broken by df7cc0b453, so this CL is restoring it.

Fixes #619

Change-Id: I8e4762d1f5a2dba4f7cf06d8ca164392c4bf6d6a
2015-05-27 19:23:39 +02:00
Felix Geller 036f8b19af pkg/index: Pass whole file for finding modtime when needed
When reading EXIF data for large tiff files, our optimistic
file prefix sometimes isn't enough and we need to pass in
the whole file. We already did this in several places (image
decoding and indexing), this change adds it for finding the
modtime (for which we try to use EXIF data when
available). It pulls common functionality out into a
separate func and changes the existing uses of this pattern
to make use of the func.

Change-Id: I2b786775f168f47f46fb5ac707e3744991139a21
2015-05-26 08:16:10 +12:00
Mathieu Lonjaret 6570d9ea94 Merge "pkg/server: decouple sign handler from UI, replace JSON maps with structs" 2015-05-25 16:52:40 +00:00
Mathieu Lonjaret d94796d4ef Merge "pkg/search: replace JSON maps with structs in search handler responses" 2015-05-25 16:45:49 +00:00
Fabian Reinartz 76a445a956 pkg/server: decouple sign handler from UI, replace JSON maps with structs
Signhandler was moved from the ui to the root handler and genconfig
adjusted accordingly.
New discovery struct types to replace the JSON maps are defined in
pkg/types/camtypes. The changes are related to Issue #539.

Change-Id: Ib3f12feeaf6fa81107de2d468cab491723e590ae
2015-05-25 09:28:07 +02:00
Fabian Reinartz df7cc0b453 pkg/search: replace JSON maps with structs in search handler responses
This change is related to Issue #539.

Change-Id: I588cbeac8867eb565e43813b5613e476f5f9d89d
2015-05-25 09:26:35 +02:00
Felix Geller f4ff53bbac pkg/index: Retry whole file when EXIF data can't be read
When reading EXIF data from larger TIFF files, we might fail
to read the EXIF data when we only pass in the in-memory
prefix. This change identifies when the third-party library
encounters a short read on a tag/EXIF data and triggers a
retry with the whole file by returning an ErrUnexpectedEOF.

Change-Id: Ie5cdc1613db6ccac49d91a69827f11ca3406a74b
2015-05-25 07:52:50 +12:00
Felix Geller 3a2ea94c13 Updates github.com/rwcarlsen/goexif to 709fab3
source: https://github.com/rwcarlsen/goexif/commit/709fab3

Removes some more sample files and test files that fail
without sample files.

Change-Id: I38f91ade479a929805b6d40d98f1643ad45e707d
2015-05-25 07:51:53 +12:00
mpl d83bf692b7 UI: document components lifecycle
Change-Id: I2145c668bf54d89ced27891449feff5582b6fa1e
2015-05-21 23:58:41 +02:00
mpl e4f808884f Merge "ui/index.js: add fallback blobRef search for targetSearchSession_" 2015-05-20 21:40:26 +00:00
mpl 93727cbff0 ui/index.js: add fallback blobRef search for targetSearchSession_
Also refactor updateTargetSearchSession_ and updateChildSearchSession_
for query string VS target blobRef precedence clarity.

Fixes #614
Fixes #615

Change-Id: Ib70f9fb582e96a6dac3b0920ce324c03501bcd32
2015-05-20 20:07:45 +02:00
Mathieu Lonjaret e38519e150 Merge "pkg/jsonsign: replace JSON map with struct in verify response" 2015-05-18 14:16:21 +00:00
Brad Fitzpatrick d6cb8d1c21 cmd/camput: fix typo in help description
Change-Id: Idfc07aff1a2b95009b1d42d962e08a96952f8977
2015-05-17 15:28:40 -07:00
Fabian Reinartz a624d4271e pkg/jsonsign: replace JSON map with struct in verify response
This change is related to Issue #539.

Change-Id: I40feb09dd8a4270edd0daf6c267eed60f13280e7
2015-05-17 11:12:10 +02:00
mpl 243fe7237f deploy/gce: change wording for Google project requirement
The current wording could lead the user to believe we're going to create
a Google project for them. This change makes it more obvious that we
won't.

Context: issue #606

Change-Id: I3bb72c92bec954e4295b7b45329d355db7e0e7ff
2015-05-14 00:06:11 +02:00
mpl 1af881a3f2 server/filetree: do not defer standard response
Because we don't want to send it in the error case.

Address comments from
https://camlistore-review.googlesource.com/#/c/4957/2/pkg/server/filetree.go

Change-Id: I96ea90a8430299fb21038b5d7b794098c40d95b1
2015-05-13 19:46:00 +02:00
mpl 0655295771 Merge "pkg/auth: send empty realm for basic auth" 2015-05-13 13:25:08 +00:00
mpl a59b6b1981 Merge "index: automatically fix missing wholeRef in FileInfo rows" 2015-05-13 13:24:30 +00:00
Brad Fitzpatrick e6371665c7 Merge "third_party: upgrade golang.org/x/net/webdav" 2015-05-13 03:13:06 +00:00
mpl e13dc9a0ce pkg/auth: send empty realm for basic auth
Fixes #595

Change-Id: I6fcc1123ce119b4071103c5427de6b8440305cea
2015-05-13 01:28:06 +02:00
mpl 1e0871c518 Merge "deploy/gce: do not display login/pass on success" 2015-05-12 22:37:13 +00:00
mpl 54d9ad1f0e Merge "devcam: move modtime check after cwd check" 2015-05-12 22:36:00 +00:00
mpl 368f893828 Merge "blobserver/drive: allow config file for tests" 2015-05-12 22:34:00 +00:00
mpl c8e44860da Merge "dock.go: upload versioned tarball" 2015-05-12 22:32:27 +00:00
mpl 3ec28bef79 Merge "website: easier launcher dev workflow" 2015-05-12 22:30:48 +00:00
mpl f336dc8331 website: easier launcher dev workflow
Use the website/launcher-config.json JSON config file to provide
all the deploy handler parameters.

Change-Id: I6156eaa80269ad3e70e9d48d7b8253a9a507036e
2015-05-13 00:26:25 +02:00
mpl 0f9a56241a index: automatically fix missing wholeRef in FileInfo rows
Issue #577

Change-Id: I45f210b32bcecb68b0ae3f60540cb33b58a729e5
2015-05-12 23:47:29 +02:00
Tamás Gulácsi 6bc123758e third_party: upgrade golang.org/x/net/webdav
rev a8c61998a557a37435f719980da368469c10bfed
"Add PROPPATCH support to in-memory property system."

Change-Id: I547344bdcc946e138ad15fedb9b8edc0446e26a6
2015-05-12 21:32:33 +02:00
Mathieu Lonjaret 19eb7d1a8c Merge "pkg/server: replace JSON map with struct for file tree response" 2015-05-12 15:54:05 +00:00
Mathieu Lonjaret 96121ba48a Merge "pkg/blobserver: replace JSON map with struct for remove response" 2015-05-12 15:35:24 +00:00
mpl 2b1ce70c15 dock.go: upload versioned tarball
Instead of just uploading the unversioned tarball, this change first
uploads a versioned tarball, then makes a copy of it as the unversioned one.
This allows for easier reverts when overwriting the unversioned tarball
by mistake.

Change-Id: Ia8a1b9008e7a203f2fb3b640dc12da432be1baf3
2015-05-12 15:41:20 +02:00
Brad Fitzpatrick 99aebc3037 third_party: update cloud logging API w/ generator updates
Update to rev be882d4ca533 of the google-api-go-client generated code.

Upstream CL is: https://code-review.googlesource.com/#/c/2461/

This lets the logging code log JSON payloads as well.

Change-Id: Iaba12126291aef3665f77dcc8e157d6166f33228
2015-05-11 12:43:29 -07:00
Fabian Reinartz f701562661 pkg/server: replace JSON map with struct for file tree response
This change is related to Issue #539.

Change-Id: I47480a4fd4c5eddd999c6247682dbba36c11d05f
2015-05-09 12:31:43 +02:00
Fabian Reinartz 7f5f7b1547 pkg/blobserver: replace JSON map with struct for remove response
This change is related to Issue #539.

Change-Id: I26d4ae5cc2d1605f534ba0ecccda78b6b17c9bc9
2015-05-09 12:24:48 +02:00
mpl 9a3073e106 blobserver/drive: allow config file for tests
Makes it easier to run the tests, compared with having to pass all
the OAuth stuff on the CLI.

Change-Id: I5fbc2f62a3815805d5d523ff897b6bdea618e230
2015-05-08 19:36:39 +02:00
mpl 89488a3cf4 pkg/server: redirect "/" to "/ui/"
Fixes #593

Change-Id: I6d98c3560aa329e9fd8a30012a8f283903d7d274
2015-05-07 17:39:42 +02:00
mpl 3db00e5e98 devcam: move modtime check after cwd check
checkCamliSrcRoot was meant to give a nice error msg if devcam is
invoked from outside the Camlistore source tree. However, it was never
called because the modtime check (checkModtime), which itself needs to
be run from that same location, was called first. So we were always
getting the terse "open dev/devcam: no such file or directory" error
message instead.

Fixes #589

Change-Id: I13a1bb3819217ffbaf727fa6154f077dd8babd49
2015-05-07 16:53:44 +02:00
mpl 1a483159c3 Merge "cloudstorage: allow config file for test parameters" 2015-05-04 14:26:17 +00:00
mpl 718f12131f cloudstorage: allow config file for test parameters
Makes it easier to run the tests, compared with having to pass all the
OAuth stuff on the CLI.

I also removed the bucket name restrictions, and instead added a check
for the bucket emptyness.

Change-Id: I1079541089ba304b152886121711ea5ba0208819
2015-05-04 16:24:31 +02:00
mpl 002b8e7212 deploy/gce: do not display login/pass on success
Fixes #597

Change-Id: Id53ad64651fdc9922eb33bb70d320b16e1d7777f
2015-04-29 22:59:00 +02:00
Brad Fitzpatrick 016f3082af Merge "Adds golang.org/x/image version 76b4869e5a for decoding tiff" 2015-04-27 12:01:55 +00:00
Felix Geller 3b5b5495f9 Adds golang.org/x/image version 76b4869e5a for decoding tiff
source: https://github.com/golang/image/commit/76b4869e5a

Change-Id: I098f1cdc512c1fd15737867acab7630953ec56ea
2015-04-27 21:02:17 +12:00
Mathieu Lonjaret d5d6cd5fe6 Merge "ui: added 'No references' placeholder text to the blob detail aspect when there are no references to display" 2015-04-24 14:39:11 +00:00
Mathieu Lonjaret 1a79246b12 Merge "added ui improvements to 0.9 release notes" 2015-04-23 13:02:43 +00:00
Mario Russo 2ed76105e2 added ui improvements to 0.9 release notes
Updates #601

Change-Id: I9ff85dd44f651fdeacab04804abe15bc560a52e2
2015-04-23 11:17:38 +02:00
Mario Russo ae85a3ff4e ui: added 'No references' placeholder text to the blob detail aspect when there are no references to display
Change-Id: I9bd7b10ab8954c41a3b4a7c375748e087fdc77b3
2015-04-23 11:08:17 +02:00
Brad Fitzpatrick a185f20f49 Merge "Upgrade github.com/syndtr/goleveldb" 2015-04-23 02:50:36 +00:00