Project

General

Profile

Actions

Feature #21941

closed

Context menu option on collection files to get a link with the PDH and link directly to keep-web

Added by Peter Amstutz about 2 months ago. Updated 4 days ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Story points:
-
Release:
Release relationship:
Auto

Description

  • Add context menu option on collection files to get a link identifier using the PDH instead of UUID. Should say something like "link to latest version" and "link to this exact version (immutable)"
  • Adjust links (both for UUID and PDH) so they go directly to keep-web.

The original reason for copy-to-clipboard to provide a workbench-based link (e.g. ?redirectToPreview=...) was that at the time, keep-web didn't support redirecting to workbench login if the user didn't have a API token cookie for the collection. Keep-web now knows how to redirect the browser to Workbench if necessary to log in, and while this uses the same ?redirectToPreview= mechanism that copy-to-clipboard currently uses, it is better to treat it as an internal implementation detail and avoid exposing it to the user for several reasons:

  • If the user uses "copy to clipboard" and gets a redirect link and wants to use it in something like curl, that won't work, because it requires loading and executing the entire Workbench web app
  • Similarly, even in the browser, the redirect link requires loading and executing the web app just to process the redirect, this adds several seconds. If the user already has a cookie, it will load the resource immediately.
  • You get different links if you visit the link and copy from the URL bar vs using "copy to clipboard" which feels bad, the links should be the same since they refer to the same resource.

Subtasks 1 (0 open1 closed)

Task #22023: Review 21941-keep-web-linkResolvedPeter Amstutz08/20/2024Actions

Related issues

Related to Arvados - Idea #21544: Convenient way to copy keep: URIsNewActions
Related to Arvados - Bug #22003: Client-side redirect in WB2 may target incorrect URL if path contains special charactersResolvedPeter AmstutzActions
Actions

Also available in: Atom PDF