Their exports name attachments without carrying the files, so the files
were reported as a loss. Each service documents where a file is
downloaded, behind the same sign-in as its API:
- Jira: fields.attachment[].content (/rest/api/3/attachment/content/<id>),
Basic email:API token; Jira's redirect to its media store is followed
without the sign-in.
- Deck: /index.php/apps/deck/api/v1.0|v1.1/boards/../stacks/../cards/..
/attachments/<id>, Basic user:app password, OCS-APIRequest: true.
- OpenProject: _links.downloadLocation, relative to the instance, Basic
apikey:<key>.
- Asana: GET /attachments/<gid>?opt_fields=download_url with a personal
access token, then the signed download_url without it; a file the
export embeds (export_boards.pl) is taken as it is; one kept on Google
Drive and the like is a link, reported.
- GitLab: a private project's /uploads/ link through
/api/v4/projects/<id>/uploads/<secret>/<file> (17.4+), Bearer token.
The import page asks for the address, user and token under "Attachment
files" for these five (the REST import takes the same as attachmentAuth).
They go with that one import: held beside the creator in a WeakMap, never
stored or logged, the token field emptied on Import, and sent ONLY to
the origin the member typed - an export names any URL it likes. Every
download is the import's SSRF-guarded fetch, which validates each hop
and drops Authorization on a cross-origin redirect. A file that cannot
be fetched is on the loss report with its reason. Unticking Attachments
leaves them out (Jira's per-issue field is pruned too).
Zenkit is left out: it publishes no way to download a file.
Tests: importAttachmentAuth.test.cjs (each service's request, the
sign-in only to its origin, malformed sign-ins, never stored or
logged), the parser tests pin the attachment lists, a Meteor test
imports an embedded Asana file onto its card and shows a Jira file is
reported without a sign-in and that the sign-in never reaches an address
the guard refuses, and import-attachment-auth.e2e.js the page (not run
here). Not run against the live services.
Thanks to xet7 !
Both were reported as losses because an import never grants access. A
watcher needs none: a source watcher now becomes a card watcher when the
members mapping maps them to a member of the new board. Anyone else -
unmapped, or mapped to a user who is not a board member and would
otherwise receive a private board's notifications - is counted in the
import's loss report instead. Nextcloud Deck sharing rules stay a
reported loss by design.
The planner tests pin board-member-only watching and the count of the
rest; the Asana and OpenProject tests pin the mapping from their
fixtures. A source guard for GitLab's Requested By follows the
gitlabUser helper introduced for the GitLab adapter.
Thanks to xet7 !
The OpenProject parser kept subject, description, due date, status,
assignee and type. It now also keeps start and creation dates, spent time
from ISO 8601 durations, priority, category, version, responsible and
author, embedded comments, the parent hierarchy and embedded relations.
Custom fields take their names from embedded schemas; estimated time and
progress become number custom fields instead of being lost. Watchers and
attachment metadata are listed in the unsupported report.
External imports can now carry custom-field values, parent links and
dependencies. The creator makes one board custom field per source field,
typed number, checkbox or text from the values present, and links cards
once every card exists. Links resolve only within the same import;
unknown targets, duplicate ids and parent cycles are reported, never
guessed.
Thanks to xet7 !