Summary: | app-text/wgetpaste-2.28-r1 generates incorrect URLs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jakub Hrbek <werifgx> |
Component: | Current packages | Assignee: | Maxim Koltsov (RETIRED) <maksbotan> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | zlogene |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Input for reproduction
copy of /usr/bin/wgetpaste |
Description
Jakub Hrbek
2019-01-07 04:51:36 UTC
Created attachment 560160 [details]
Input for reproduction
Video: https://youtu.be/uV4A4vd-ZxQ Created attachment 560162 [details]
copy of /usr/bin/wgetpaste
I've commented out line 494 in Attachment #2 [details] on my system to prevent `Your ${2}paste can be seen here: " >&2` from spamming in output.. Not sure if it's relevant.
EDIT: if line 494 is uncommented the output is: Your paste can be seen here: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 Why gentoo bug was created rather than debug and send this upstream? Wgetpaste has greedy regular expression at the line 564 in the get_url() function which is: sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*" so this maches # Location: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 [following] line 91 here: https://paste.pound-python.org/show/dJnhReaoi4NoSvhsPfmk/ But I am sure we do not want to have a distro fix, so please report upstream. (In reply to Mikle Kolyada from comment #6) > Why gentoo bug was created rather than debug and send this upstream? I saw yours and Maksbotan's name in 'Maintainers' and i though that it's gentoo package? Assuming that it's not present on other distros and that homepage (http://wgetpaste.zlin.dk/) is just full of download links? Can you share contact on upstream? I'm unable to find any https://duckduckgo.com/?q=wgetpaste&t=h_&ia=web > Wgetpaste has greedy regular expression at the line 564 in the get_url() > function which is: > > sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*" > > so this maches > > # Location: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 > [following] > > line 91 here: > > https://paste.pound-python.org/show/dJnhReaoi4NoSvhsPfmk/ > > But I am sure we do not want to have a distro fix, so please report upstream. Noted, thanks for info. The status on this bug is incorrect. It should have been marked as a duplicate of 634632. (In reply to Jakub Hrbek from comment #7) > (In reply to Mikle Kolyada from comment #6) > > Why gentoo bug was created rather than debug and send this upstream? > > I saw yours and Maksbotan's name in 'Maintainers' and i though that it's > gentoo package? Assuming that it's not present on other distros and that > homepage (http://wgetpaste.zlin.dk/) is just full of download links? > > Can you share contact on upstream? I'm unable to find any > https://duckduckgo.com/?q=wgetpaste&t=h_&ia=web https://github.com/zlin/wgetpaste > > > Wgetpaste has greedy regular expression at the line 564 in the get_url() > > function which is: > > > > sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*" > > > > so this maches > > > > # Location: https://codeload.github.com/PhoenicisOrg/phoenicis/tar.gz/v9999 > > [following] > > > > line 91 here: > > > > https://paste.pound-python.org/show/dJnhReaoi4NoSvhsPfmk/ > > > > But I am sure we do not want to have a distro fix, so please report upstream. > > Noted, thanks for info. Thanks(In reply to nvinson234 from comment #9) > (In reply to Jakub Hrbek from comment #7) > https://github.com/zlin/wgetpaste Thanks! Note: Recommends adding a link on https://github.com/zlin/wgetpaste to an ebuild. Current homepage is not helpful alike for reporting bugs. |