radhika [Tue, 6 May 2014 16:28:17 +0000 (12:28 -0400)]
2525: correct indentation for pom.xml
radhika [Tue, 6 May 2014 16:08:40 +0000 (12:08 -0400)]
2525: use -Dmaven.test.skip=true when packaging the SDK.
radhika [Tue, 6 May 2014 14:54:54 +0000 (10:54 -0400)]
Merge branch 'master' into 2525-java-sdk
Peter Amstutz [Tue, 6 May 2014 01:24:45 +0000 (21:24 -0400)]
Fix so that a present but empty select parameter in queries no longer yields
an error.
Tom Clegg [Mon, 5 May 2014 21:24:10 +0000 (17:24 -0400)]
Fix broken test case.
Ward Vandewege [Mon, 5 May 2014 21:09:43 +0000 (17:09 -0400)]
Merge branch 'master' of git.curoverse.com:arvados
Ward Vandewege [Mon, 5 May 2014 21:06:01 +0000 (17:06 -0400)]
Documentation tweaks:
* Python SDK requires Python 2.7, make that clear up front
* Remove duplicated SDK installation instructions
Tom Clegg [Mon, 5 May 2014 21:02:37 +0000 (17:02 -0400)]
Merge branch '2640-folder-api'
Tom Clegg [Mon, 5 May 2014 21:01:50 +0000 (17:01 -0400)]
Merge branch 'master' into 2640-folder-api
Conflicts:
apps/workbench/app/models/arvados_api_client.rb
Tom Clegg [Mon, 5 May 2014 20:55:19 +0000 (16:55 -0400)]
Raise PermissionDeniedError even more consistently
Tom Clegg [Mon, 5 May 2014 20:05:22 +0000 (16:05 -0400)]
Raise PermissionDeniedError more consistently
Tom Clegg [Mon, 5 May 2014 20:02:29 +0000 (16:02 -0400)]
Comment mysterious testing code.
Tom Clegg [Mon, 5 May 2014 19:59:44 +0000 (15:59 -0400)]
Add test for links_for + multiple link_classes.
Brett Smith [Mon, 5 May 2014 19:20:45 +0000 (15:20 -0400)]
Merge branch '1904-workbench-reader-tokens'
Refs #1904. Closes #2663, #2736.
Brett Smith [Mon, 5 May 2014 16:55:29 +0000 (12:55 -0400)]
workbench: Reader tokens show collection files.
Fundamentally, this commit aims to support reader tokens when showing
a file from a Collection. Because this requires changing the token
handling generally, I also took this opportunity to improve error
reporting by checking the request's validity against the API server
before we pipe out to arv-get to render the file.
As a consequence, Workbench now returns a 404 if you request a file
using a token that does not have permission to read the collection.
Maybe this is not the best result, but previously it returned a 422,
so I think this counts as an improvement.
Brett Smith [Mon, 5 May 2014 14:54:53 +0000 (10:54 -0400)]
workbench: Add initial reader tokens support.
The API server recently gained support for reader tokens, which
optionally supplement the user's permissions for read-only
operations. This commit extends Workbench to pass on reader tokens
for general index and show operations.
Brett Smith [Wed, 30 Apr 2014 14:38:08 +0000 (10:38 -0400)]
workbench: Add Collections controller tests.
Working to establish a baseline of behavior before I go mucking with
this.
Brett Smith [Thu, 1 May 2014 14:42:33 +0000 (10:42 -0400)]
workbench: Remove trailing whitespace.
Tim Pierce [Mon, 5 May 2014 18:03:10 +0000 (14:03 -0400)]
Merge branch '2328-keep-permission-hints'
Tim Pierce [Mon, 5 May 2014 17:52:06 +0000 (13:52 -0400)]
Resolve code review (closes #2328)
Fix doc comments and argument names for the expiry timestamp arguments
for SignLocator and makePermSignature.
radhika [Mon, 5 May 2014 17:40:26 +0000 (13:40 -0400)]
2525: Now that we have the doc page updated with Java SDK details, updated the README file to
point to the doc page instead of maintaining two copies of the same content.
radhika [Mon, 5 May 2014 17:24:20 +0000 (13:24 -0400)]
2525: Add java SDK to documentation site.
Tom Clegg [Mon, 5 May 2014 10:08:30 +0000 (06:08 -0400)]
Behave nicer if supplied owner_uuid is not a valid uuid at all.
radhika [Sun, 4 May 2014 21:56:11 +0000 (17:56 -0400)]
2525: Remove unused imports
radhika [Sun, 4 May 2014 21:53:23 +0000 (17:53 -0400)]
2525: Better handling of unsupported api name and version
radhika [Sun, 4 May 2014 21:35:00 +0000 (17:35 -0400)]
Merge branch 'master' into 2525-java-sdk
radhika [Sun, 4 May 2014 21:34:10 +0000 (17:34 -0400)]
2525: return map instead of json string for the call method.
radhika [Sun, 4 May 2014 20:47:25 +0000 (16:47 -0400)]
2525: small refactoring
radhika [Sun, 4 May 2014 19:53:17 +0000 (15:53 -0400)]
2525: add map parameter type handling to request processing
radhika [Sun, 4 May 2014 18:53:32 +0000 (14:53 -0400)]
2525: add float handling to request parameters
Tom Clegg [Sun, 4 May 2014 18:49:11 +0000 (14:49 -0400)]
Do not try to record object_owner_uuid during earlier migrations.
radhika [Sun, 4 May 2014 18:13:31 +0000 (14:13 -0400)]
2525: Add support for array request parameter type
radhika [Sun, 4 May 2014 02:18:52 +0000 (22:18 -0400)]
Merge branch 'master' into 2525-java-sdk
radhika [Sun, 4 May 2014 02:17:30 +0000 (22:17 -0400)]
2525: readme and test updates
Tom Clegg [Sun, 4 May 2014 01:25:19 +0000 (21:25 -0400)]
Merge branch 'master' into 2640-folder-api
Tom Clegg [Sun, 4 May 2014 01:22:17 +0000 (21:22 -0400)]
Fix crashing "grant access to my own object" permission check.
Tom Clegg [Sun, 4 May 2014 01:08:18 +0000 (21:08 -0400)]
Prevent ownership cycles.
radhika [Sat, 3 May 2014 23:15:10 +0000 (19:15 -0400)]
2525: updated README
radhika [Sat, 3 May 2014 22:49:58 +0000 (18:49 -0400)]
2525: More tests
radhika [Sat, 3 May 2014 21:37:32 +0000 (17:37 -0400)]
2525: override the default name for the generated package
radhika [Sat, 3 May 2014 21:06:20 +0000 (17:06 -0400)]
2525: Rename ArvadosSDKJavaUser.java as ArvadosSDKJavaExample.java
radhika [Sat, 3 May 2014 20:27:19 +0000 (16:27 -0400)]
2525: delete object created during test.
radhika [Sat, 3 May 2014 19:42:26 +0000 (15:42 -0400)]
2525: a little cleanup of variable names
radhika [Sat, 3 May 2014 19:24:42 +0000 (15:24 -0400)]
2525: call method invocation should match arvados api documentation, instead of discover document format.
radhika [Sat, 3 May 2014 16:45:38 +0000 (12:45 -0400)]
2525: call method invocation should match arvados api documentation, instead of discover document format.
radhika [Sat, 3 May 2014 15:52:55 +0000 (11:52 -0400)]
2525: call method invocation should match arvados api documentation, instead of discover document format.
radhika [Sat, 3 May 2014 13:33:21 +0000 (09:33 -0400)]
2525: token, host name, and host insecure can also be passed to constructor similar to other SDKs. If so, the environment variables are ignored and passed in values are used.
radhika [Sat, 3 May 2014 12:46:52 +0000 (08:46 -0400)]
Merge branch 'master' into 2525-java-sdk
Tom Clegg [Sat, 3 May 2014 00:00:04 +0000 (20:00 -0400)]
Improve code formatting
Tom Clegg [Fri, 2 May 2014 23:45:16 +0000 (19:45 -0400)]
Return all links if link_class is not provided. Add docs.
Tom Clegg [Fri, 2 May 2014 23:41:23 +0000 (19:41 -0400)]
Return empty list if no "links" supplied in api response. Add tests.
Tim Pierce [Fri, 2 May 2014 22:26:08 +0000 (18:26 -0400)]
Incorporating code review. (refs #2328)
Tom Clegg [Fri, 2 May 2014 20:27:18 +0000 (16:27 -0400)]
Merge branch '2223-repo-owner-admin-perms'
closes #2223
Peter Amstutz [Fri, 2 May 2014 20:16:16 +0000 (16:16 -0400)]
Merge branch 'query-select-distinct'
Peter Amstutz [Fri, 2 May 2014 20:10:10 +0000 (16:10 -0400)]
Restored support for old-style 'order' strings and added test. Clarified
documentation for 'distinct' as to the default behavior.
Peter Amstutz [Fri, 2 May 2014 19:54:45 +0000 (15:54 -0400)]
Fixed botched 'distinct' parameter, now is a boolean instead of taking a
column. New tests. Also changed syntax of 'order' to take a JSON array for
consistency with 'filters' and 'select'.
Tim Pierce [Fri, 2 May 2014 19:09:46 +0000 (15:09 -0400)]
Update docs. (refs #2328)
Tim Pierce [Fri, 2 May 2014 19:05:07 +0000 (15:05 -0400)]
Added permission helper functions.
GeneratePerms returns a string representing the signed permission hint
for the blob identified by blob_hash, api_token and timestamp.
SignLocator takes a blob_locator, an api_token and a timestamp, and
returns a signed locator string.
VerifySignature returns true if the signature on the signed_locator can
be verified using the given api_token.
Refs #2328.
Tom Clegg [Fri, 2 May 2014 16:19:42 +0000 (12:19 -0400)]
Take into account owner_uuid and is_admin when exporting repository permissions.
Tom Clegg [Fri, 2 May 2014 14:32:52 +0000 (10:32 -0400)]
Fix crash if item has no name (backported from 1970-folder-view)
Peter Amstutz [Fri, 2 May 2014 14:12:25 +0000 (10:12 -0400)]
Fix for interaction between 'select' and 'order' (SQL requires that order
fields show up in select when doing select distinct; readable_by does 'select distinct' by default to avoid duplicate rows).
Tom Clegg [Fri, 2 May 2014 02:20:28 +0000 (22:20 -0400)]
Name links do not need to be owned by tail_uuid.
Tom Clegg [Thu, 1 May 2014 22:01:37 +0000 (18:01 -0400)]
Add unique and valid name constraints.
Tom Clegg [Thu, 1 May 2014 21:43:50 +0000 (17:43 -0400)]
Fix wrong infixes in fixture uuids.
Tom Clegg [Thu, 1 May 2014 21:41:29 +0000 (17:41 -0400)]
Merge branch 'master' into 2640-folder-api
Peter Amstutz [Thu, 1 May 2014 20:26:09 +0000 (16:26 -0400)]
Merge remote-tracking branch 'origin/master' into 2035-arv-mount-tags-folders
Conflicts:
services/api/app/controllers/application_controller.rb
Peter Amstutz [Thu, 1 May 2014 18:54:51 +0000 (14:54 -0400)]
Added 'select' and 'distinct' parameters to discovery document. Improved
select parameter to parse strings as json.
Tom Clegg [Thu, 1 May 2014 18:38:46 +0000 (14:38 -0400)]
Use partial unique index for name links.
Tom Clegg [Thu, 1 May 2014 18:38:15 +0000 (14:38 -0400)]
Fix log permission case broken in merge.
Tom Clegg [Thu, 1 May 2014 18:26:40 +0000 (14:26 -0400)]
Merge branch 'master' into 2640-folder-api
Conflicts:
services/api/app/controllers/application_controller.rb
services/api/app/models/arvados_model.rb
Peter Amstutz [Thu, 1 May 2014 17:16:10 +0000 (13:16 -0400)]
Merge branch 'master' of git.clinicalfuture.com:arvados
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Peter Amstutz [Thu, 1 May 2014 17:15:54 +0000 (13:15 -0400)]
Another go at migration, uses batched loading and transactions, should have
improved performance.
Tom Clegg [Thu, 1 May 2014 17:11:40 +0000 (13:11 -0400)]
Merge branch '2328-signatures-for-integration-testing'
refs #2328
Tom Clegg [Thu, 1 May 2014 17:11:22 +0000 (13:11 -0400)]
Add partial unique index
Tom Clegg [Thu, 1 May 2014 16:50:06 +0000 (12:50 -0400)]
Add test cases that produce predictable signatures with fixed expiry times.
Tom Clegg [Thu, 1 May 2014 16:03:02 +0000 (12:03 -0400)]
Put back missing parentheses.
Peter Amstutz [Thu, 1 May 2014 14:06:19 +0000 (10:06 -0400)]
Changed Log.all.each to Log.find_each because Log.all loads all records (!) and
Log.find_each loads records in batches. Hopefully this will enable migration
to run without being killed.
Peter Amstutz [Thu, 1 May 2014 12:49:11 +0000 (08:49 -0400)]
Fixed middleware customization so that it doesn't assume the presence or
location of ActionDispatch::Static.
radhika [Thu, 1 May 2014 01:13:00 +0000 (21:13 -0400)]
2525: add apiVersion to constructor args
radhika [Thu, 1 May 2014 00:01:13 +0000 (20:01 -0400)]
Merge branch 'master' into 2525-java-sdk
Peter Amstutz [Wed, 30 Apr 2014 20:55:06 +0000 (16:55 -0400)]
Merge branch 'master' of git.clinicalfuture.com:arvados
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Peter Amstutz [Wed, 30 Apr 2014 20:54:40 +0000 (16:54 -0400)]
Merge branch 'origin-2608-websocket-event-bus-alt2'
Conflicts:
services/api/app/models/arvados_model.rb
services/api/test/test_helper.rb
Tim Pierce [Wed, 30 Apr 2014 20:22:03 +0000 (16:22 -0400)]
Merge branch '2620-keep-serialize-io' (closes #2620)
Tom Clegg [Wed, 30 Apr 2014 18:14:15 +0000 (14:14 -0400)]
Merge branch 'master' into 2640-folder-api
Tim Pierce [Wed, 30 Apr 2014 17:49:08 +0000 (13:49 -0400)]
Replaced KeepVolumes with a VolumeManager interface.
A VolumeManager interface may be used to set policy for writing to a set
of Keep volumes. The sole implementation at present is RRVolumeManager,
which implements simple round-robin scheduling; other implementations
could include a manager which selects the least-loaded disk first, the
fastest one, the one with the fewest pending writes, etc. etc.
Refs #2620
Brett Smith [Wed, 30 Apr 2014 17:31:38 +0000 (13:31 -0400)]
Merge branch '1904-api-reader-tokens'
Closes #2702, #2707.
Brett Smith [Tue, 29 Apr 2014 21:41:48 +0000 (17:41 -0400)]
api: Accept JSON-formatted reader token array.
Brett Smith [Wed, 30 Apr 2014 17:26:15 +0000 (13:26 -0400)]
api: Introduce reader_tokens for extra access.
reader_tokens are API tokens whose read permissions will be added to
the primary API token's. For actions that only read resources, like
:index and :show, you can now omit the API token as long as you
provide at least one reader_token.
This allows users to get access to one-off resources without
interrupting their primary session. For example, Workbench will use
it to access Collections shared via secret link.
Brett Smith [Tue, 29 Apr 2014 14:20:28 +0000 (10:20 -0400)]
api: More consistency in test helper methods.
I keep accidentally rewriting the methods in ArvadosTestHelper, so I'm
putting them in one module loaded for all tests so I can use them
consistently.
Peter Amstutz [Wed, 30 Apr 2014 15:40:09 +0000 (11:40 -0400)]
Merge remote-tracking branch 'origin/master' into origin-2608-websocket-event-bus-alt2
Conflicts:
services/api/app/controllers/application_controller.rb
services/api/app/controllers/arvados/v1/schema_controller.rb
services/api/db/schema.rb
Peter Amstutz [Wed, 30 Apr 2014 15:26:58 +0000 (11:26 -0400)]
Moved message handling out to a separate method for clarity in eventbus.
Fixing name mismatch /websockets => /websocket in configuration
Added guards to various tests to ensure no more messages are processed after
the test is supposed to be done.
Peter Amstutz [Wed, 30 Apr 2014 14:56:22 +0000 (10:56 -0400)]
Short-circuts #readable_by when the user is admin.
Peter Amstutz [Wed, 30 Apr 2014 14:56:04 +0000 (10:56 -0400)]
Unsubscribe message now takes filter definition instead of filter_id, reducing
the state both the client and server have to maintain in order to support
unsubscribing. Added code comments and updated tests.
Peter Amstutz [Wed, 30 Apr 2014 14:54:37 +0000 (10:54 -0400)]
Added code comments.
Peter Amstutz [Wed, 30 Apr 2014 14:53:35 +0000 (10:53 -0400)]
Now supports both websocket integrated (ARVADOS_WEBSOCKETS defined) and
websocket-only (ARVADOS_WEBSOCKETS=ws-only) server modes. Added comment to
application.yml.example about setting websocket_address when running in
websocket-only mode.
radhika [Wed, 30 Apr 2014 12:39:29 +0000 (08:39 -0400)]
525: Update the .classpath to reflect the latest trimmed down version of pom.xml
radhika [Wed, 30 Apr 2014 11:40:35 +0000 (07:40 -0400)]
2525: Java SDK does not need com.google.oauth-client library
radhika [Wed, 30 Apr 2014 10:53:13 +0000 (06:53 -0400)]
Merge branch 'master' into 2525-java-sdk
radhika [Wed, 30 Apr 2014 10:52:17 +0000 (06:52 -0400)]
2525: when using main method, print output to console.
Tom Clegg [Wed, 30 Apr 2014 07:00:16 +0000 (03:00 -0400)]
Fix route name in nodes.create, add basic functional test.