libwww-perl / libwww-perl/HTTP-Cookies

extract_cookies croaks for file: addresses [rt.cpan.org #99453]

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

Nobody has claimed this yet.

Dominant language
Perl
Stars
4
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Migrated from rt.cpan.org#99453 (status was 'open')

Requestors:

  • 'spro^^%^6ut#@&$%*c

From $_ = 'spro^^%^6ut#@&$�>#!^!#&!pan.org'; y/a-z.@//cd; print on 2014-10-13 00:20:47:


From ether@cpan.org on 2014-10-13 00:42:13:

On Sun, Oct 12, 2014 at 08:20:47PM -0400, Father Chrysostomos via RT wrote:
> Output:
> 
> Can't locate object method "port" via package "URI::file" at /System/Library/Perl/Extras/5.12/HTTP/Cookies.pm line 188.
> 
> Should URI::file have a port method returning undef?  Or should the ->port call be wrapped in an eval?

The latter, I think -- generally only specific URI subclasses implement the
interfaces relevant to them, with the expectation that caller uses ->can or
->isa on the $uri object first.

Contributor guide

No contributing guide indexed for this repository

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 in HTTP/Cookies.pm at line 188 and inspect how extract_cookies handles the URI::file object and its port lookup. Confirm the change against a file: address and ensure extraction no longer croaks when the URI lacks a port method.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.