Commit Graph

5489 Commits

Author SHA1 Message Date
mpl 329244af79 Merge "pkg/server/app: fix path to env vars doc" 2015-06-25 21:53:10 +00:00
mpl b8dd557bce pkg/server/app: fix path to env vars doc
Change-Id: I0438da76082e076259bfcbbeaf598bb5d8f50632
2015-06-25 23:51:13 +02:00
mpl 245ae14788 Merge "UI: remove unused blob pages" 2015-06-24 21:47:32 +00:00
Tamás Gulácsi 39f816d3f2 golang.org/x/net/webdav: update
commit 34ff4cd5e6de00702100a0ab3bb73de8de5ab35d

webdav: make it work for Mini-Redirector, emit namespace-prefixed XML.

by Mathieu Lonjaret.

Change-Id: Id599fc4fe5064631fe01e59117eb98abdb85ad5f
2015-06-23 12:14:34 +02:00
mpl 5398396ef5 UI: remove unused blob pages
Also remove obsolete stanzas in Makefile

Change-Id: I864451e44bf760ab546d02d5bbf7b59afdc8a665
2015-06-22 17:24:35 +02:00
Tamás Gulácsi 6c2e973b61 Upgrade golang.org/x/net/webdav
Commit dfe268fd2bb5c793f4c083803609fce9806c6f80

Upgrade suggested by Robert Stepanek.

Change-Id: Iaf12e4d8a2fe376187bf6fa8dec8ace83384c8d3
2015-06-05 09:35:28 +02:00
mpl 630052ff02 Merge "ui/navigator: allow tests, fix navigate return, add tests" 2015-06-04 22:17:09 +00:00
mpl c3869765ed Merge "ui/server_connection: fix opt_fail handling + long overdue cleanups" 2015-06-04 22:13:17 +00:00
Mathieu Lonjaret cfbacfcd52 Merge "ui: fixing persisted selection state across navigation" 2015-06-04 13:25:30 +00:00
mpl 7d355cf5d8 ui/server_connection: fix opt_fail handling + long overdue cleanups
opt_fail as an optional argument didn't work in the cases where the
func would also receive an event as argument. Because when opt_fail is
not provided, the arguments get shifted and the event value would end up
in the opt_fail variable, or vice-versa.
So in these cases, I switched to the more robust
func({success: success, fail: fail}, event) syntax

As a result, safeFail wasn't that useful anymore, and it was incorrectly
bound in some cases, so I removed it.

I also removed a few intermediate function calls which made reading
unnecessarily more complicated.

Change-Id: Ie70694a26e52f302837bbf6ffc16b0a0bb77ad7e
2015-06-03 19:35:57 +02:00
mpl 8c392e92a0 ui/navigator: allow tests, fix navigate return, add tests
1) cam.object dep was needed for any of the tests to run
2) fixed the return logic of navigate() to match its doc. Should be of
no consequence though, as afaik this return value is not used anywhere.
3) added tests for 2)

Change-Id: I5c236ab95482b50437f0047d63e42603f754438d
2015-06-03 17:46:33 +02:00
Mathieu Lonjaret eb7db12247 Merge "pkg/client: set default port to 443 when using self-verified tls." 2015-06-02 21:50:43 +00:00
Salman Aljammaz 426496ab8d pkg/client: set default port to 443 when using self-verified tls.
Fixes #616

Change-Id: Id6c8771d06aa7ccb024459cabd9afb4433a3d011
2015-06-02 17:11:03 +03:00
Mario Russo 38f16f6e31 ui: fixing persisted selection state across navigation
Reintroduction of the left/right arrow and the Around query
broke saved selection state.

Fixes: #609

Change-Id: I0974fd8af48e0eb9fe9d16faecd41b17a6f3824b
2015-05-29 14:58:39 +02:00
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