arvados.git
10 years agoMerge branch 'master' into 3141-keep-logging-improvements
Ward Vandewege [Fri, 4 Jul 2014 02:19:54 +0000 (22:19 -0400)]
Merge branch 'master' into 3141-keep-logging-improvements

10 years agoDon't send null job creation parameters in arv-run-pipeline-instance. no issue #
Peter Amstutz [Fri, 4 Jul 2014 01:40:22 +0000 (21:40 -0400)]
Don't send null job creation parameters in arv-run-pipeline-instance.  no issue #

10 years agoDon't raise exception if filters parameter parses to
Peter Amstutz [Fri, 4 Jul 2014 01:37:20 +0000 (21:37 -0400)]
Don't raise exception if filters parameter parses to
json "null".  no issue #

10 years agoDon't set "too long" flag on websocket test timer if the websocket is already
Peter Amstutz [Fri, 4 Jul 2014 01:04:09 +0000 (21:04 -0400)]
Don't set "too long" flag on websocket test timer if the websocket is already
closed.  Hopefully this will make the tests more robust.  no issue #

10 years agoUpdate api server Gemfile dependency on arvados-cli package so crunch-dispatch
Peter Amstutz [Thu, 3 Jul 2014 21:10:28 +0000 (17:10 -0400)]
Update api server Gemfile dependency on arvados-cli package so crunch-dispatch
uses commit:ee99af1
no issue #

10 years agorefs #3055
radhika [Thu, 3 Jul 2014 20:47:28 +0000 (16:47 -0400)]
refs #3055
Merge branch '3055-advanced-tab-explanations'

10 years agoMerge branch 'master' into 3055-advanced-tab-explanations
radhika [Thu, 3 Jul 2014 20:46:30 +0000 (16:46 -0400)]
Merge branch 'master' into 3055-advanced-tab-explanations

10 years agoMerge branch 'master' into 3055-advanced-tab-explanations
radhika [Thu, 3 Jul 2014 20:45:08 +0000 (16:45 -0400)]
Merge branch 'master' into 3055-advanced-tab-explanations

10 years agojob create method parameters need to be converted to json before being passed
Peter Amstutz [Thu, 3 Jul 2014 20:38:59 +0000 (16:38 -0400)]
job create method parameters need to be converted to json before being passed
to google API client.  no issue #

10 years agoDo not blow up trying to run a job if runtime_constraints is set to nil
Ward Vandewege [Thu, 3 Jul 2014 19:03:17 +0000 (15:03 -0400)]
Do not blow up trying to run a job if runtime_constraints is set to nil

no issue #

10 years agoAdd some more detail to the docker installation page.
Ward Vandewege [Thu, 3 Jul 2014 18:32:36 +0000 (14:32 -0400)]
Add some more detail to the docker installation page.

refs #3131

10 years agoMerge branch '3174-arv-ls-size-fencepost' closes #3174
Tom Clegg [Thu, 3 Jul 2014 16:28:22 +0000 (12:28 -0400)]
Merge branch '3174-arv-ls-size-fencepost' closes #3174

10 years agoMerge branch '2873-permission-links-ownership'
Tim Pierce [Thu, 3 Jul 2014 15:45:47 +0000 (11:45 -0400)]
Merge branch '2873-permission-links-ownership'

Closes #2873. Huzzah!

10 years agoMerge branch '2985-shared-projects-descriptions'
Tim Pierce [Thu, 3 Jul 2014 15:38:32 +0000 (11:38 -0400)]
Merge branch '2985-shared-projects-descriptions'

Refs #2985, closes #3083, closes #3158.

10 years agoUpdate arvados-cli dependency of API server so crunch-dispatch.rb uses
Peter Amstutz [Thu, 3 Jul 2014 15:31:01 +0000 (11:31 -0400)]
Update arvados-cli dependency of API server so crunch-dispatch.rb uses
arv-run-pipeline-instance from commit:c806ef1
no issue #

10 years ago3174: Round up, not down, when reporting file sizes in KB.
Tom Clegg [Thu, 3 Jul 2014 15:11:48 +0000 (11:11 -0400)]
3174: Round up, not down, when reporting file sizes in KB.

10 years ago3174: Heed "common" section of config yaml the same way apiserver does.
Tom Clegg [Thu, 3 Jul 2014 15:10:35 +0000 (11:10 -0400)]
3174: Heed "common" section of config yaml the same way apiserver does.

10 years agodocker: mkimage-debootstrap.sh: wrap which calls that are expected to
Ward Vandewege [Thu, 3 Jul 2014 15:03:09 +0000 (11:03 -0400)]
docker: mkimage-debootstrap.sh: wrap which calls that are expected to
fail in a set +e/set -e block

no issue #

10 years ago"filters" is now propagated through from pipeline component to the job
Peter Amstutz [Thu, 3 Jul 2014 14:53:53 +0000 (10:53 -0400)]
"filters" is now propagated through from pipeline component to the job
submission.  Also added example filter to documentation.  no issue #

10 years ago2873: more code review changes
Tim Pierce [Thu, 3 Jul 2014 01:24:32 +0000 (21:24 -0400)]
2873: more code review changes

* get_permissions sets @offset and @limit explicitly to ensure that
  render_list does the right thing.

* Tests updated to use permission links on Groups (permissions are not
  yet working for other objects)

* Added tests for "uuid exists but is unreadable" and "uuid is readable
  but not manageable"

Refs #2873.

10 years ago2985: display project descriptions inline
Tim Pierce [Wed, 2 Jul 2014 19:15:20 +0000 (15:15 -0400)]
2985: display project descriptions inline

Project descriptions in the "My Projects" and "Projects shared with
me" panels are displayed inline next to the project name, not in a
tooltip.

Refs #2985, refs #3083.

10 years agoMerge branch '3151-permission-ttl'
Tim Pierce [Wed, 2 Jul 2014 18:07:06 +0000 (14:07 -0400)]
Merge branch '3151-permission-ttl'

Closes #3151.

10 years ago3151: use 2-week default permission TTL
Tim Pierce [Wed, 2 Jul 2014 18:02:56 +0000 (14:02 -0400)]
3151: use 2-week default permission TTL

Fixes #3151.

10 years ago3055: add explanation to the example commands in the advanced tab.
radhika [Wed, 2 Jul 2014 16:01:39 +0000 (12:01 -0400)]
3055: add explanation to the example commands in the advanced tab.

10 years agoMerge branch '3118-docker-fixes'
Ward Vandewege [Wed, 2 Jul 2014 14:37:36 +0000 (10:37 -0400)]
Merge branch '3118-docker-fixes'

refs #3118

10 years agoRemove superfluous cd commands
Ward Vandewege [Wed, 2 Jul 2014 14:36:18 +0000 (10:36 -0400)]
Remove superfluous cd commands

refs #3131

10 years agoFix up link in the docker alert box.
Ward Vandewege [Wed, 2 Jul 2014 14:35:20 +0000 (10:35 -0400)]
Fix up link in the docker alert box.

refs #3131

10 years agoThe linkchecker rake task should return with the exit code of linkchecker.
Ward Vandewege [Wed, 2 Jul 2014 14:28:34 +0000 (10:28 -0400)]
The linkchecker rake task should return with the exit code of linkchecker.

no issue #

10 years agoMerge branch '3118-docker-fixes'
Ward Vandewege [Wed, 2 Jul 2014 13:52:38 +0000 (09:52 -0400)]
Merge branch '3118-docker-fixes'

refs #3118

10 years agoAdd state of the docker installation alert to the top of the docker
Ward Vandewege [Wed, 2 Jul 2014 13:51:49 +0000 (09:51 -0400)]
Add state of the docker installation alert to the top of the docker
installation page, too.

10 years agoMerge branch 'master' into 3141-keep-logging-improvements
Ward Vandewege [Wed, 2 Jul 2014 13:51:00 +0000 (09:51 -0400)]
Merge branch 'master' into 3141-keep-logging-improvements

10 years ago2873: changes for code review
Tim Pierce [Wed, 2 Jul 2014 12:59:58 +0000 (08:59 -0400)]
2873: changes for code review

Incorporating code review comments:

* @Link#get_permissions@ uses @Link.where@ instead of @find_objects_for_index@; @find_object_for_uuid@ just populates @@object@ with the head_uuid object and leaves @@objects@ alone.
* @ArvadosModel.lookup_by_uuid@ renamed @ArvadosModel.find_by_uuid@ and punts to the superclass if called as a subclass method.
* Test @get_permissions_returns_list@ checks that the :active user can get permissions. Also uses the group fixtures for testing permissions instead of collections (because can_manage permissions only work so far on users and groups.

(refs #2873)

10 years agoDo not print an error when hitting 'not found' with a the MockVolume
Ward Vandewege [Wed, 2 Jul 2014 02:12:34 +0000 (22:12 -0400)]
Do not print an error when hitting 'not found' with a the MockVolume
backend.

10 years agoMove error logging for block-not-found from GetBlock to GetBlockHandler.
Ward Vandewege [Wed, 2 Jul 2014 01:27:34 +0000 (21:27 -0400)]
Move error logging for block-not-found from GetBlock to GetBlockHandler.

It doesn't belong in GetBlock because GetBlock is also called from
PutBlock, which checks to see if a block exists before it writes it
again.

In other words, in the most common scenario (a PUT of a new block), Keep
should not print a bogus error message.

10 years agoUnixVolume has no business being loud about files that can not be found.
Ward Vandewege [Wed, 2 Jul 2014 01:12:47 +0000 (21:12 -0400)]
UnixVolume has no business being loud about files that can not be found.
Just pass on the error to the caller and be quiet.

Back story: for every PUT, Keep checks if the block already exists.
Prior to this patch, UnixVolume would complain loudly if the block did
not already exist in the volume (i.e. the normal case for a PUT).

10 years agoChange crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to
Peter Amstutz [Tue, 1 Jul 2014 15:38:27 +0000 (11:38 -0400)]
Change crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to
fetch entire repository instead of just the history for HEAD.  This seems to be
the only way to ensure that arbitrary script version hashes not in the history
of the source's HEAD are fetched without using refs (tags or branches).
no issue #

10 years agoAdd documentation to doc.arvados.org for the local Docker install.
Ward Vandewege [Tue, 1 Jul 2014 20:38:11 +0000 (16:38 -0400)]
Add documentation to doc.arvados.org for the local Docker install.

10 years agoAdd explicit version constraint < 1.0.0 on 'jwt' gem for arvados-cli, because
Peter Amstutz [Wed, 2 Jul 2014 01:21:12 +0000 (21:21 -0400)]
Add explicit version constraint < 1.0.0 on 'jwt' gem for arvados-cli, because
google-api-client gem dependecy breaks with jwt 1.0.0.  no issue #

10 years agoMerge branch '3118-docker-fixes'
Ward Vandewege [Tue, 1 Jul 2014 20:39:18 +0000 (16:39 -0400)]
Merge branch '3118-docker-fixes'

refs #3118

10 years agoMerge branch 'master' into 3118-docker-fixes
Ward Vandewege [Tue, 1 Jul 2014 20:38:47 +0000 (16:38 -0400)]
Merge branch 'master' into 3118-docker-fixes

10 years agoAdd documentation to doc.arvados.org for the local Docker install.
Ward Vandewege [Tue, 1 Jul 2014 20:38:11 +0000 (16:38 -0400)]
Add documentation to doc.arvados.org for the local Docker install.

10 years agoChange crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to
Peter Amstutz [Tue, 1 Jul 2014 15:38:27 +0000 (11:38 -0400)]
Change crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to
fetch entire repository instead of just the history for HEAD.  This seems to be
the only way to ensure that arbitrary script version hashes not in the history
of the source's HEAD are fetched without using refs (tags or branches).
no issue #

10 years agoAlways initialize arvados.api() so it doesn't silently fail when
Peter Amstutz [Tue, 1 Jul 2014 14:17:34 +0000 (10:17 -0400)]
Always initialize arvados.api() so it doesn't silently fail when
ARVADOS_API_HOST isn't set.  Improve error handing in arv-mount.  no issue #

10 years agoAdd dockerfile to build arvados/jobs-bwa-samtools image. no issue #
Peter Amstutz [Tue, 1 Jul 2014 14:10:29 +0000 (10:10 -0400)]
Add dockerfile to build arvados/jobs-bwa-samtools image. no issue #

10 years agoMerge branch '3099-spinner-assets' closes #3099
Tom Clegg [Tue, 1 Jul 2014 00:45:00 +0000 (20:45 -0400)]
Merge branch '3099-spinner-assets' closes #3099

10 years ago3099: Use appropriate tr>td markup if infinite scroll container is a table.
Tom Clegg [Tue, 1 Jul 2014 00:41:15 +0000 (20:41 -0400)]
3099: Use appropriate tr>td markup if infinite scroll container is a table.
Remove unused class.

10 years agoUpdate required arvados-cli package to get fix 55e1aaf (Fix 'arv' to handle
Peter Amstutz [Mon, 30 Jun 2014 20:15:52 +0000 (16:15 -0400)]
Update required arvados-cli package to get fix 55e1aaf (Fix 'arv' to handle
missing/non-writable $HOME). no issue #

10 years agoMerge branch 'arv-crunch-HOME-envvar' no issue #
Peter Amstutz [Mon, 30 Jun 2014 19:16:39 +0000 (15:16 -0400)]
Merge branch 'arv-crunch-HOME-envvar' no issue #

10 years agoSet $HOME to /tmp/crunch-job for docker.
Peter Amstutz [Mon, 30 Jun 2014 19:16:21 +0000 (15:16 -0400)]
Set $HOME to /tmp/crunch-job for docker.

10 years agoMerge branch '3118-docker-fixes'
Ward Vandewege [Mon, 30 Jun 2014 19:14:39 +0000 (15:14 -0400)]
Merge branch '3118-docker-fixes'

refs #3118

10 years agoMerge branch '2891-improve-workbench-errors'
Brett Smith [Mon, 30 Jun 2014 19:13:12 +0000 (15:13 -0400)]
Merge branch '2891-improve-workbench-errors'

Closes #3079, #3080, #2891, #3092.

10 years agoMerge branch 'master' into 3118-docker-fixes
Ward Vandewege [Mon, 30 Jun 2014 19:12:40 +0000 (15:12 -0400)]
Merge branch 'master' into 3118-docker-fixes

10 years ago2891: Workbench details the requested item on its 404 page.
Brett Smith [Mon, 30 Jun 2014 18:31:40 +0000 (14:31 -0400)]
2891: Workbench details the requested item on its 404 page.

10 years ago2891: Trying to show a non-UUID in Workbench renders 404.
Brett Smith [Mon, 30 Jun 2014 18:08:29 +0000 (14:08 -0400)]
2891: Trying to show a non-UUID in Workbench renders 404.

10 years ago2891: Workbench reliably reloads model columns after failure.
Brett Smith [Fri, 27 Jun 2014 18:37:34 +0000 (14:37 -0400)]
2891: Workbench reliably reloads model columns after failure.

ArvadosBase @columns could get stuck as [] if the API server wasn't
available during Workbench's first API request.  This change ensures
that it keeps trying to reload column information until it receives
good data.

10 years ago2891: Workbench renders login exceptions earlier.
Brett Smith [Fri, 27 Jun 2014 18:30:38 +0000 (14:30 -0400)]
2891: Workbench renders login exceptions earlier.

These changes are designed to ensure that if there are any problems
getting information from the current API token (other than expected
401 Unauthorized responses), those problems are raised early and
propagated up to the exception handler.  This helps better ensure that
thread state is consistent when we get to later stages of request
processing.

10 years ago2891: Workbench current_user copes when API server is unreachable.
Brett Smith [Thu, 26 Jun 2014 20:36:16 +0000 (16:36 -0400)]
2891: Workbench current_user copes when API server is unreachable.

10 years ago2891: Workbench converts API HTTP errors to API exceptions.
Brett Smith [Thu, 26 Jun 2014 20:35:30 +0000 (16:35 -0400)]
2891: Workbench converts API HTTP errors to API exceptions.

10 years ago2891: Guard against API server errors in Workbench layout.
Brett Smith [Wed, 25 Jun 2014 20:39:24 +0000 (16:39 -0400)]
2891: Guard against API server errors in Workbench layout.

The goal here is to generally avoid situations like #3031 where
trouble talking to the API server prevents us from even rendering an
error page.  Previous commits made us smarter about logged in status.
This guards against other API errors.

10 years agoClean redundant conditional from Workbench layout.
Brett Smith [Wed, 25 Jun 2014 20:31:57 +0000 (16:31 -0400)]
Clean redundant conditional from Workbench layout.

10 years ago2891: Workbench displays more info about API errors.
Brett Smith [Wed, 25 Jun 2014 20:07:27 +0000 (16:07 -0400)]
2891: Workbench displays more info about API errors.

10 years ago2891: Add Workbench test for expired API token.
Brett Smith [Wed, 25 Jun 2014 18:11:10 +0000 (14:11 -0400)]
2891: Add Workbench test for expired API token.

10 years ago2891: Add index link to Workbench 404 responses.
Brett Smith [Mon, 23 Jun 2014 21:31:57 +0000 (17:31 -0400)]
2891: Add index link to Workbench 404 responses.

10 years ago2891: Workbench returns 404 when API object doesn't exist.
Brett Smith [Mon, 23 Jun 2014 19:53:18 +0000 (15:53 -0400)]
2891: Workbench returns 404 when API object doesn't exist.

10 years ago2891: Workbench API client raises structured exceptions.
Brett Smith [Mon, 23 Jun 2014 19:28:48 +0000 (15:28 -0400)]
2891: Workbench API client raises structured exceptions.

These changes will make it easier for the rest of the Workbench code
to cope with these errors more gracefully—even if that just means
friendlier reporting of the error.

10 years ago2891: API server assigns error tokens.
Brett Smith [Tue, 24 Jun 2014 15:38:50 +0000 (11:38 -0400)]
2891: API server assigns error tokens.

These unique tokens are both logged and sent along with the response,
making it easier to cross-reference what the client does with what
happens on the API server.

10 years ago2891: API server ApplicationController style updates.
Brett Smith [Tue, 24 Jun 2014 14:22:25 +0000 (10:22 -0400)]
2891: API server ApplicationController style updates.

This ports over some of the niceties we've recently implemented in the
Workbench ApplicationController.

10 years ago2891: Fix bug in Workbench error page test.
Brett Smith [Wed, 25 Jun 2014 17:47:13 +0000 (13:47 -0400)]
2891: Fix bug in Workbench error page test.

10 years agodocker: arvdoc: start up doc and workbench last so it's less likely the
Ward Vandewege [Mon, 30 Jun 2014 19:04:15 +0000 (15:04 -0400)]
docker: arvdoc: start up doc and workbench last so it's less likely the
user will overlook the URL hint that is printed out.

10 years agodocker: arvdock: whitespace cleanup
Ward Vandewege [Mon, 30 Jun 2014 19:02:16 +0000 (15:02 -0400)]
docker: arvdock: whitespace cleanup

10 years agodocker: usability improvements for arvdock.
Ward Vandewege [Mon, 30 Jun 2014 19:01:28 +0000 (15:01 -0400)]
docker: usability improvements for arvdock.

10 years agoSet $HOME to $TASK_WORK for tasks. no issue #
Peter Amstutz [Mon, 30 Jun 2014 18:50:15 +0000 (14:50 -0400)]
Set $HOME to $TASK_WORK for tasks.  no issue #

10 years agoFix 'arv' to handle missing/non-writable $HOME. no issue #
Peter Amstutz [Mon, 30 Jun 2014 18:48:48 +0000 (14:48 -0400)]
Fix 'arv' to handle missing/non-writable $HOME.  no issue #

10 years agocloses #3076
radhika [Mon, 30 Jun 2014 16:50:16 +0000 (12:50 -0400)]
closes #3076
Merge branch '3076-topnav-help'

10 years agoMerge branch 'master' into 3076-topnav-help
radhika [Mon, 30 Jun 2014 16:45:46 +0000 (12:45 -0400)]
Merge branch 'master' into 3076-topnav-help

10 years agocloses #3088
radhika [Mon, 30 Jun 2014 16:19:16 +0000 (12:19 -0400)]
closes #3088
Merge branch '3088-project-chooser-on-run-pipeline-template'

10 years ago3088: address review feedback -- change the icon positioning on the Run button.
radhika [Mon, 30 Jun 2014 16:16:11 +0000 (12:16 -0400)]
3088: address review feedback -- change the icon positioning on the Run button.

10 years agoMerge branch 'master' into 3088-project-chooser-on-run-pipeline-template
radhika [Mon, 30 Jun 2014 16:08:07 +0000 (12:08 -0400)]
Merge branch 'master' into 3088-project-chooser-on-run-pipeline-template

10 years agorefs #2659
radhika [Mon, 30 Jun 2014 16:03:55 +0000 (12:03 -0400)]
refs #2659
Merge branch '2659-anonymous-server-side'

10 years agoMerge branch 'master' into 3088-project-chooser-on-run-pipeline-template
radhika [Mon, 30 Jun 2014 15:46:36 +0000 (11:46 -0400)]
Merge branch 'master' into 3088-project-chooser-on-run-pipeline-template

10 years agoMerge branch 'master' into 2659-anonymous-server-side
radhika [Mon, 30 Jun 2014 15:41:26 +0000 (11:41 -0400)]
Merge branch 'master' into 2659-anonymous-server-side

10 years ago2659: look for scopes and expires_at when getting anonymous token. also, update creat...
radhika [Mon, 30 Jun 2014 15:39:41 +0000 (11:39 -0400)]
2659: look for scopes and expires_at when getting anonymous token. also, update create anonymous user to check for group link even when the user exists.

10 years agodocker: remove warehouse container; add new keep container.
Ward Vandewege [Mon, 30 Jun 2014 14:59:32 +0000 (10:59 -0400)]
docker: remove warehouse container; add new keep container.

refs #3120

10 years agoAdd 'run-command' generic crunch command wrapper. refs #2342
Peter Amstutz [Mon, 30 Jun 2014 14:42:39 +0000 (10:42 -0400)]
Add 'run-command' generic crunch command wrapper.  refs #2342

10 years ago2659: remove the share_the_aproject_with_all_groups fixture in links.
radhika [Mon, 30 Jun 2014 14:39:52 +0000 (10:39 -0400)]
2659: remove the share_the_aproject_with_all_groups fixture in links.

10 years agoMerge branch 'master' into 2659-anonymous-server-side
radhika [Mon, 30 Jun 2014 14:12:48 +0000 (10:12 -0400)]
Merge branch 'master' into 2659-anonymous-server-side

10 years agodocker: bump up passenger version. This is highly unsatisfactory, and needs
Ward Vandewege [Mon, 30 Jun 2014 04:24:06 +0000 (04:24 +0000)]
docker: bump up passenger version. This is highly unsatisfactory, and needs
proper fixing.

10 years agodocker: fix up the link between workbench and the API server, work around the
Ward Vandewege [Mon, 30 Jun 2014 04:23:15 +0000 (04:23 +0000)]
docker: fix up the link between workbench and the API server, work around the
lack of ERB parsing in application.yml

10 years agodocker: a bunch of tweaks to bring the docker setup up to snuff with the latest
Ward Vandewege [Mon, 30 Jun 2014 03:43:31 +0000 (03:43 +0000)]
docker: a bunch of tweaks to bring the docker setup up to snuff with the latest
version of our codebase.

10 years agodocker: arvdock: support new Debian docker.io packages
Ward Vandewege [Mon, 30 Jun 2014 03:43:13 +0000 (03:43 +0000)]
docker: arvdock: support new Debian docker.io packages

10 years agodocker: more changes to support new Debian docker.io packages
Ward Vandewege [Mon, 30 Jun 2014 01:02:13 +0000 (01:02 +0000)]
docker: more changes to support new Debian docker.io packages

10 years agodocker: build_tools/build.rb: improve language around Google account.
Ward Vandewege [Mon, 30 Jun 2014 00:25:48 +0000 (00:25 +0000)]
docker: build_tools/build.rb: improve language around Google account.

10 years agodocker: build_tools/build.rb: support new Debian docker.io packages
Ward Vandewege [Mon, 30 Jun 2014 00:18:52 +0000 (00:18 +0000)]
docker: build_tools/build.rb: support new Debian docker.io packages

10 years agodocker: build_tools/build.rb: exit with non-zero exit code when something goes
Ward Vandewege [Mon, 30 Jun 2014 00:08:10 +0000 (00:08 +0000)]
docker: build_tools/build.rb: exit with non-zero exit code when something goes
wrong.

10 years ago2873: add /permissions API method
Tim Pierce [Thu, 26 Jun 2014 18:17:48 +0000 (14:17 -0400)]
2873: add /permissions API method

The /permissions/:uuid method will return a list of all permissions that
the current user is allowed to see on the given uuid.

* New method LinksController::get_permissions, with a route from
  /arvados/v1/permissions.

* LinksController overrides find_object_by_uuid to permit looking up a
  uuid in any class, when called by get_permissions.

* Moved link permission checking to Link.ensure_owner_uuid_is_permitted.

* Use current_user.can? to check the user's permission on head_uuid.
  Removed unnecessary owns? and can_manage? code.

* Unit tests:

  * test/integration/permissions_test.rb: added tests:
    * "get_permissions returns list"
    * "get_permissions returns 404 for nonexistent uuid"
    * "get_permissions returns 403 if user lacks manage permission"

  * test/unit/link.rb: test that only permission and name links have
    their ownership changed upon save.

  * test/unit/permission_test.rb: test the following scenario: when user
    "active" owns a group G which can_manage another group H, then
    active user is permitted to create permission links directly on
    objects in group H.

Refs #2873.

2873: perms

10 years agoFix tests broken by adding zero-length block manifests containing a zero length
Peter Amstutz [Fri, 27 Jun 2014 16:16:05 +0000 (12:16 -0400)]
Fix tests broken by adding zero-length block manifests containing a zero length
file.  refs #3084

10 years agoHandle empty directories in arv-put. refs #3087
Peter Amstutz [Fri, 27 Jun 2014 15:11:50 +0000 (11:11 -0400)]
Handle empty directories in arv-put.  refs #3087

10 years agoHandle zero-length streams that contain zero-length files. refs #3084
Peter Amstutz [Fri, 27 Jun 2014 14:57:24 +0000 (10:57 -0400)]
Handle zero-length streams that contain zero-length files.  refs #3084

10 years agoMerge branch 'master' into 3076-topnav-help
radhika [Fri, 27 Jun 2014 14:20:56 +0000 (10:20 -0400)]
Merge branch 'master' into 3076-topnav-help

10 years agoMerge branch 'master' into 3088-project-chooser-on-run-pipeline-template
radhika [Fri, 27 Jun 2014 14:19:59 +0000 (10:19 -0400)]
Merge branch 'master' into 3088-project-chooser-on-run-pipeline-template