Configure HTTPS/libcurl by default because it's now needed to access CRAM reference registry

Open
#605 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
networking

Research direction

Start with the ./configure path described in the issue and inspect how libcurl support is currently enabled or disabled. Check the CRAM Reference Registry access path and existing configuration tests, if present. Done means HTTPS access to the registry works by default while users can still opt out of libcurl support.

Written by the indexing model from the issue text.

Description

Per @tk2, EBI recently began switching all www connections, including to the CRAM Reference Registry, to HTTPS. This is good even though the references are public data, because it helps to ensure the data can't be corrupted in-flight.

However, it means that htslib now requires HTTPS support (i.e. libcurl, ./configure --enable-libcurl) in order to access the CRAM Reference Registry. Otherwise (by default!), viewing a CRAM file fails with a cryptic error "Failed to populate reference for id ..."

My suggestion therefore would be to change libcurl from opt-in to opt-out.

Dominant language
C
Stars
950
Forks
475
Avg merge
3d 13h
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samtools/htslib

All issues in samtools/htslib

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.