Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Include URL in Bundler::Fetcher::FallbackError message for Net::HTTPNotFound #6864

Merged
2 commits merged into from
Jan 15, 2019

Conversation

greysteil
Copy link
Contributor

What was the end-user problem that led to this PR?

It was really painful to debug persistent NotFound errors, as it wasn't clear where they were coming from,

What was your diagnosis of the problem?

Bundler was obfuscating the URL that wasn't found unnecessarily.

What is your fix for the problem, implemented in this PR?

My fix is to add the URL to the Bundler::Fetcher::FallbackError message for Net::HTTPNotFound errors.

Why did you choose this fix out of the possible options?

I chose this fix because it was simple and easy to test.

@segiddins
Copy link
Member

Can you add a spec that makes sure that passwords are removed from the URI in the error message?

@greysteil
Copy link
Contributor Author

Good shout - updated! The CI failure on ruby-head is hopefully unrelated...

@segiddins
Copy link
Member

Nice!
@bundlerbot r+

ghost pushed a commit that referenced this pull request Jan 15, 2019
6864: Include URL in Bundler::Fetcher::FallbackError message for Net::HTTPNotFound r=segiddins a=greysteil

### What was the end-user problem that led to this PR?

It was really painful to debug persistent NotFound errors, as it wasn't clear where they were coming from,

### What was your diagnosis of the problem?

Bundler was obfuscating the URL that wasn't found unnecessarily.

### What is your fix for the problem, implemented in this PR?

My fix is to add the URL to the `Bundler::Fetcher::FallbackError` message for `Net::HTTPNotFound` errors.

### Why did you choose this fix out of the possible options?

I chose this fix because it was simple and easy to test.

Co-authored-by: Grey Baker <[email protected]>
@ghost
Copy link

ghost commented Jan 15, 2019

Build succeeded

@ghost ghost merged commit 23ddab3 into master Jan 15, 2019
@ghost ghost deleted the greysteil/show-notfound-uri branch January 15, 2019 08:26
@colby-swandale colby-swandale added this to the 2.1.0 milestone Feb 28, 2019
@colby-swandale colby-swandale modified the milestones: 2.1.0, 2.0.2 Apr 4, 2019
colby-swandale pushed a commit that referenced this pull request Apr 4, 2019
6864: Include URL in Bundler::Fetcher::FallbackError message for Net::HTTPNotFound r=segiddins a=greysteil

### What was the end-user problem that led to this PR?

It was really painful to debug persistent NotFound errors, as it wasn't clear where they were coming from,

### What was your diagnosis of the problem?

Bundler was obfuscating the URL that wasn't found unnecessarily.

### What is your fix for the problem, implemented in this PR?

My fix is to add the URL to the `Bundler::Fetcher::FallbackError` message for `Net::HTTPNotFound` errors.

### Why did you choose this fix out of the possible options?

I chose this fix because it was simple and easy to test.

Co-authored-by: Grey Baker <[email protected]>
(cherry picked from commit 4557124)
colby-swandale added a commit that referenced this pull request Jun 13, 2019
* 2-0-stable: (89 commits)
  fix changelog 2.0.2 typos
  add v2.0.2 changelog
  bump version to 2.0.2
  Merge #7199
  fix bug where bundler v3 is running a test for bundflet 2
  Merge #6798
  add bors configuation
  port GemHelper from master
  Merge #7080
  Merge #7089
  Merge #7068
  Merge #7036
  Merge #7067
  change Bundler 3 specs in travis to use RubyGems 3.0.3
  bump RubyGems v3 to the latest version on Travis
  Merge #6963
  Merge #7078
  Merge pull request #7061 from bundler/fix_circular_requires
  Merge #6864
  remove linting step in travis (it will still run in each build)
  ...
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants