Commit Graph

7217 Commits

Author SHA1 Message Date
mpl af4d166090 go.mod: update garyburd/go-oauth
to rev bca2e7f09a17

Fixes #1240

Change-Id: I59322c2196c8491c70ee0bcb7751ee01ab257ec1
2018-12-28 18:56:40 +01:00
Mathieu Lonjaret 1008e11420 Merge "doc/synology: update latest tarballs" 2018-12-24 10:45:48 +00:00
Mathieu Lonjaret aa7ab23772 Merge "pkg/importer: add "instapaper" importer for Instapaper service" 2018-12-03 15:07:30 +00:00
Angel 3dbb01138f pkg/importer: add "instapaper" importer for Instapaper service
A working importer for the Instapaper service. The importer imports
bookmarks, full text articles, and highlights. A blob item handler for
Instapaper highlight permanodes is included to show summarized highlight
content from the server UI.

Also, this CL updates github.com/garyburd.com/go-auth to rev
bca2e7f09a178fd36b034107a00e2323bca6a82e in order to get support for
XAuth requests.

Fixes #1208

Change-Id: I72e0c40b245c7eec4a44bb475fcaa96a0ee9a1c5
2018-11-26 07:57:08 -05:00
mpl 5d12c9aa0d devcam: create hooks dir if it does not exist
Which can apparently happen with the way gitlab clones our repo.

Change-Id: I895c28647fd211ef7beea2e20ae51b866467f81c
2018-11-22 02:22:09 +01:00
Paul Lindner d364c30ba8 all: add notifications for travis so they appear in the irc channel
Change-Id: I09a1d258c4e8d6bcb6de1352299eac49bcedd2e1
2018-10-31 14:20:39 -07:00
mpl dc4c57880c server/perkeepd/ui: use TokenOrNone in selectall
Omission from 8130bd61ef

Change-Id: Iecf31de608283f12d48ef150d42c7cf55c055d16
2018-10-07 19:16:33 +02:00
mpl bcb0ec628e vendor: bump github.com/gopherjs/gopherjs
To rev 0fee806ad4970060e8f97d37a50fc58572426195, to support Go 1.11.1

Fixes #1227

Change-Id: I8cbb24ff60b3407bec3fad0d660957e36d998324
2018-10-07 04:36:24 +02:00
Mathieu Lonjaret ae7698101e Merge "server/perkeepd/ui/goui: suppress basic auth on OmitAuthToken" 2018-09-27 22:59:36 +00:00
mpl 8130bd61ef server/perkeepd/ui/goui: suppress basic auth on OmitAuthToken
The javascript code was taking into account the OmitAuthToken signal
that there should be no auth, but it hadn't been done in the gopherjs
code yet as well.

Fixes #1221

Change-Id: I3eda0cc12c99664739d6073cc1aeba1aeed8a88a
2018-09-26 20:00:36 +02:00
mpl 69a68e7e91 misc/docker/go: update to Go 1.11
Change-Id: Ia4c4826a572e3317460d6a71af19e9885fe72926
2018-09-26 02:52:53 +02:00
mpl e6dd735c20 cmd/pk: strip knownKeys from dumpconfig
Fixes #1204

Change-Id: If463b84d8250ed1b0f48e6ed24b7d37843f082cb
2018-09-26 02:00:19 +02:00
mpl 2453859515 server/perkeepd/ui: actually use defaults for dialog size
Change-Id: I69a3406db8fd71618b1b8feba207707aef726db9
2018-09-25 20:02:38 +02:00
mpl 03a10b5c34 cmd/pk-mount: make -version flag actually work
Fixes #1219

Change-Id: I3eb81a3f3fdd9dbaabd3510e8d9d80e5b0ef4b8e
2018-09-24 20:12:12 +02:00
Mathieu Lonjaret d109c3b2c7 Merge "clients/android: bump targetSdkVersion to 26" 2018-09-24 16:03:30 +00:00
mpl 965aeaca33 clients/android: bump targetSdkVersion to 26
Because it is mandatory as of nov 2018:
https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

As the default Notification.Builder constructor is deprecated in API 26,
this change also adds the use of the new constructor, which requires a
notification channel Id.

Note: since the users are now in full-control of the notifications,
they can now choose to completely block the auto-upload notification
channel. Given that the main goal of the notification was to keep the
app in memory in order for auto-upload to work, one could expect that
blocking the channel would defeat the notification's purpose. However,
as far as I could test, auto-uploading seems to still be working even
after disabling the channel, and letting the activity die (tip: in
devoloper options, one can tick "Don't keep activities"). In fact,
Perkeep Uploader still always runs as a service.

Also build pk-put shipped in the app with Go 1.11.

Fixes #1202

Change-Id: I8f98e0df742915cb504b6c1cfaa42ca6dc7b6189
2018-09-22 02:40:40 +02:00
Mathieu Lonjaret 6a2eadf481 Merge "Dockerfile: use Go 1.11" 2018-09-20 23:36:04 +00:00
mpl b0901046fe Dockerfile: use Go 1.11
Change-Id: Ia42c6aec924436f8a1fb5a226fb204f043f4e06b
2018-09-21 01:32:26 +02:00
mpl 44db6d9b98 server/perkeepd/ui: treat ref: as special case only with full blobRef
The ref: predicate was treated as a special case, to make it correspond
to navigating to a "blobRef URL", e.g.
http://localhost:3179/ui/sha224-b6a88695e3a9178d45fdfb1fa888939d5adc090f866aaa1d7b5ec3a5

However, we should not do that when the query is only for the prefix of
a blobRef, e.g. "ref:sha224-b6a88695".
This CL therefore adds a check to make sure we're in the presence of a
full blobRef before navigating to the special case.

Fixes #1119

Change-Id: Ib92b43adbb2316c1607d617eb03de132c38de85f
2018-09-19 03:01:02 +02:00
mpl ca7f2e57e3 dev/devcam: use libsqlite3 tag when -sqlite=true
In 5894af5196 we chose not to vendor
sqlite3-binding.c and sqlite3-binding.h in, because we rely on the
system's libsqlite3 instead. But we never told devcam test to use the
corresponding necessary "libsqlite3" tag, which is now done in this CL.

Also, comment properly about it in .gitignore.

And make Travis CI use the devcam installed in $GOPATH/bin, instead of
specifically building one in tree.

Change-Id: I4b7bb1305669037f84063c7cf6c7f356c99f3edc
2018-09-14 22:16:23 +02:00
Mathieu Lonjaret 016d0964ee Merge "make.go: update to Go 1.11 as required version" 2018-09-14 14:44:52 +00:00
mpl 3f24764ea9 make.go: update to Go 1.11 as required version
Wich also means updating github.com/gopherjs/gopherjs to
rev 0210a2f0f73c96103378b0b935f39868e5731809

Fixes #1211

Change-Id: I9ae580bffda523237d471942f39ae157ff4bd303
2018-09-14 13:01:08 +00:00
mpl b26a440e4b pkg/server: fix camlistore.org refs on help page
Change-Id: I11f1b362460f411939a4608ddb83a4027cb12e7e
2018-09-14 03:21:03 +02:00
Mathieu Lonjaret ad6dae391e Merge "clients/osx: use Keepy for all app icons" 2018-09-06 18:59:08 +00:00
Sergio Pantoja fd2a64ff2d clients/osx: use Keepy for all app icons
Updates #1147

Change-Id: Ie76a2b101b3bd155f0ab318c85e7026531f5ab56
2018-09-06 01:04:57 -04:00
Mathieu Lonjaret 918152c1f1 Merge "doc: add files vs permanodes explanation" 2018-09-05 15:32:33 +00:00
Sergio Pantoja 1bc914b368 clients/osx: update link to new Google Group
Updates #981

Change-Id: I78f52c28b8ff2426867af510b083d5fa724decc3
2018-09-03 00:07:05 -04:00
mpl 80fbcfc4b7 travis CI: run tests with sqlite enabled
Fixes #1085

Change-Id: I7f961b67c44c860089cdde8da9baf9649b5bbf76
2018-08-29 18:20:48 +02:00
mpl c243487bdb pkg/index/sqlite: fix tests
Long broken since the sha224 switch.

Updates #1085

Change-Id: I2dda3dac6bd3c8006be0974bdc9be402e25b7429
2018-08-29 03:39:05 +02:00
mpl edfa4d0d28 website: document raw search operator
And sort operators.

Change-Id: I0f8fb24db15421ea819bfa3381d574a0b213cef5
2018-08-28 19:49:35 +02:00
mpl 5ca78c73d2 cmd/pk-mount: add schema summary to doc
Change-Id: I516d6fe5c364b6eb1d7f8977a67791ca399d214e
2018-08-28 18:55:20 +02:00
Mathieu Lonjaret dd2d82c250 Merge "doc: add reverse-proxy section in server-config" 2018-08-24 15:23:13 +00:00
mpl 4e7b447f6e devcam mount: look for pk-mount in GOPATH
Change-Id: I6b06d76b02c4e66c64fbfe4fd54ce2e3a51ef494
2018-08-24 03:16:57 +02:00
mpl e3577aab47 doc: add reverse-proxy section in server-config
Change-Id: I0abbb7d0de734eb5d22799bb4fa7d627e21c495a
2018-08-24 01:58:36 +02:00
Viktor e6fb16557f internal/geocode: use viewport if bounds is not defined
The bounds response from google geo api is optional and for many searches not
returned at all. Use viewport in those cases.

Change-Id: Iaf0a055720fd6cc0a2c87e93b8e22315798a0b35
2018-08-23 19:39:47 +02:00
Mathieu Lonjaret 9a49f0959d Merge "importer/twitter: add likes import" 2018-08-21 23:53:37 +00:00
Mathieu Lonjaret 2820453dd3 Merge "pkg/importer/twitter: update importer account instruction" 2018-08-21 23:50:29 +00:00
Mathieu Lonjaret 9b71b68eb2 Merge "Add Makefile rule to push dev Docker images to gcr.io." 2018-08-18 00:01:13 +00:00
Brad Fitzpatrick ccbe18f668 Add Makefile rule to push dev Docker images to gcr.io.
Change-Id: I60cb8a8457591ae35b8b9f3c8e42a1290a2697d7
2018-08-17 14:03:50 -07:00
mpl 246c1ff454 go.mod: update github.com/go-sql-driver/mysql to the version we are vendoring
Which is 99ff426eb706cffe92ff3d058e168b278cabf7c7, as per
commit e007f66b76

Change-Id: I0fe16eb39dfda10d86e11321f27b8739cc59a401
2018-08-17 03:10:55 +02:00
mpl 0888d28260 all: fix misc bugs found with go test ./...
Change-Id: If5bda860c9cc6bdc14c2977646516c58d17d62de
2018-08-17 02:17:54 +02:00
Brad Fitzpatrick 91ea14c63e Merge "Add Go 1.11 go.mod and go.sum module files." 2018-08-16 16:22:11 +00:00
Niklas Merz 05f86e7846
importer/twitter: add likes import
Import liked tweets via favorites API

Change-Id: I8000bcd20cd895e540ec4d3b36035531172c7cb6
2018-08-14 17:49:37 +02:00
Euan Kemp 1ca3a0443e pk-deploy: set logger to fix panic
Fixes #1206

Change-Id: Ifa4ba0d0face1f4ee176cbaed483ec173e7dbbb7
2018-08-13 10:29:36 -07:00
Philip Silva 457a636722 pkg/auth: userpass: compare strings in constant time
Makes the http auth more secure against timing attacks.

Resolves #1205

Change-Id: I6069331d9a6da454a2e664a57cb425f53dea0016
2018-08-09 15:48:42 +02:00
mpl f6280b16cd server/perkeepd: fix typo in log message
Change-Id: I56d4534ba92fd7e4b78613d697f8af6671b6ecfe
2018-08-08 18:33:34 +02:00
mpl 592a9e046c vendor: add missing files in github.com/go-sql-driver/mysql
New files that I forgot to git add in the
e007f66b76 update.

Change-Id: Ic2a8177df16b178a346e2e6273ce2b6096f172c5
2018-08-08 18:08:59 +02:00
Mathieu Lonjaret ba70be6b46 Merge "pkg/search: fix dir search with logical not constraints" 2018-08-08 15:12:27 +00:00
Robert Günzler f7cc51f83b pkg/search: fix dir search with logical not constraints
As demonstrated by the test case added in this commit, a
search panics if the DirConstraint contains a LogicalConstraint
with Op set to "not". This is because the isFileOrDirConstraint
function doesn't account for unset "B".

Change-Id: I111ace62486160254ba22ab1498de78cde2a5e9b
2018-08-08 02:55:29 +02:00
Brad Fitzpatrick f416012e19 Add Go 1.11 go.mod and go.sum module files.
Updates #1066

Change-Id: Ic33f637339de4f7a8eaac8d36bbbdb059b77fc3b
2018-08-07 13:54:26 -07:00