Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Retrying an upload can fail in append-only mode

Open
#196 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
go

Research direction

Start by reading the append-only upload behavior described here and the discussion in pull request #195, especially the referenced issue comment. No file or test is named, and the intended resolution is undecided between accepting a matching reupload and returning a special status code; done requires choosing and verifying one reliable retry behavior.

Written by the indexing model from the issue text.

Description

Output of rest-server --version

0.11.0

What should rest-server do differently?

As discussed in https://github.com/restic/rest-server/pull/195#issuecomment-1235918789 there is a possibility that retrying the upload for a file may fail in append-only mode:

if an upload for an append-only repository succeeds without the client learning about that fact, this will cause later retries to fail. It would be possible for the rest-server to accept a reupload iff that upload has the expected file hash.

Another option would be to return a special status code to signal to restic that the file in question already exists.

What are you trying to do? What is your use case?

Ensure uploads work reliably even when retries are necessary.

Dominant language
Go
Stars
1.5k
Forks
179
Avg merge
15d 9h
Merged PRs (30d)
2

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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 restic/rest-server

All issues in restic/rest-server

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.