fsspec / fsspec/gcsfs

The _cat_file doesn't respect the header passed via user.

Open
#889 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement
Dominant language
Python
Stars
398
Forks
181
Avg merge
2d 10h
Merged PRs (30d)
36

Description

The _cat_file function currently ignores headers provided by the user. While this might be intended behavior since we have not supported them historically, I believe now is a good time to add support for this use case, given that _get_file will soon depend on it.

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.

Research direction

Start by locating the _cat_file and _get_file entry points in the gcsfs source and tracing how user headers are currently handled. Confirm the expected interaction between the two functions, then use the repository's existing tests to verify that headers supplied by the user are respected and that _get_file can depend on this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.