[opensuse] Any progress on susepaste reporting failed when it actually succeeds?
This came up a month or so back, susepaste reports that it failed on the command line, but the paste actually succeeds. I believe it was a curl issue at the time and there was a recommendation on changing the script from http to https to make curl happy. Well, it still continues to report failure even though the paste succeeds, e.g. $ pst "ptr2array-3" ptr2array3.c c Dec 25 02:38:00 - "ptr2array-3" ptr2array3.c Paste failed :-( expires: Wed Jan 22 02:38:02 CST 2020 Paste happily made it: https://paste.opensuse.org/70684135 but I still get the "Paste failed :-(" message. http/https makes no difference. Any suggestions? (also... to you and your's this holiday!) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/25/2019 02:47 AM, David C. Rankin wrote:
This came up a month or so back, susepaste reports that it failed on the command line, but the paste actually succeeds. I believe it was a curl issue at the time and there was a recommendation on changing the script from http to https to make curl happy.
Well, it still continues to report failure even though the paste succeeds, e.g.
$ pst "ptr2array-3" ptr2array3.c c Dec 25 02:38:00 - "ptr2array-3" ptr2array3.c Paste failed :-( expires: Wed Jan 22 02:38:02 CST 2020
Paste happily made it: https://paste.opensuse.org/70684135
but I still get the "Paste failed :-(" message. http/https makes no difference. Any suggestions?
(also... to you and your's this holiday!)
I have it working. Here are the modifications: <snip> URL="` curl -v -F "$TYPE=$INPUT" -F "title=$TITLE" -F "expire=$EXPIRE" \ -F "name=$NICK" -F "submit=submit" -F "lang=$SYNTAX" \ $API_KEY \ http://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `" # Check the results and inform the user if expr "$URL" : "^http.*://susepaste.org/[0-9a-f]\+" > /dev/null; then ID="`echo "$URL" | sed 's|^.*[.]org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" echo "Pasted as:" echo " https://susepaste.org/$ID" echo " https://paste.opensuse.org/$ID" if [ -x /usr/bin/xclip ]; then echo "https://susepaste.org/$ID" | xclip -selection XA_CLIPBOARD echo "Link is also in your clipboard." fi else echo "Paste failed :-(" fi Changes applied: (1) in curl, leave as http://susepaste.org (2) depending on whether curl report http/https, change the regex in if expr "$URL" : "^http.*://susepaste.org/[0-9a-f]\+" > /dev/null; then (to make the 's' optional) (3) to eliminate the same issue in parsing ID key off the .org in the host.domain.tld modifying the regex to ...^.*[.]org... in ID="`echo "$URL" | sed 's|^.*[.]org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" Now working like a charm. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/01/2020 01.10, David C. Rankin wrote: ... | I have it working. Here are the modifications: Thanks. Modified mine and will try. ... | Changes applied: | | (1) in curl, leave as http://susepaste.org why not https? - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXh2WzAAKCRC1MxgcbY1H 1WYIAJwMu4kghxCP0KiCem/cnHrC/aMhGACfYG7WJ3ktsR7O6qjmwzA75/jpiGo= =DcNd -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/01/2020 11.24, Carlos E. R. wrote: | On 14/01/2020 01.10, David C. Rankin wrote: | | ... | | | I have it working. Here are the modifications: | | Thanks. Modified mine and will try. It hangs here, sorry. Could you attach the script instead of posting the modifications? Surely I typed some error. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXh7qTAAKCRC1MxgcbY1H 1dq4AJ0Umt4VoPwmuti01cEObyGQgdOlMQCfbv3gAUPnhTVqDb1SZeLRaI01bBk= =3ssj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/15/2020 04:32 AM, Carlos E. R. wrote:
On 14/01/2020 11.24, Carlos E. R. wrote: | On 14/01/2020 01.10, David C. Rankin wrote: | | ... | | | I have it working. Here are the modifications: | | Thanks. Modified mine and will try.
It hangs here, sorry.
Could you attach the script instead of posting the modifications? Surely I typed some error.
-- Cheers / Saludos,
Carlos E. R. (from 15.1 x86_64 at Telcontar)
Sure: -- David C. Rankin, J.D.,P.E.
David C. Rankin composed on 2020-01-16 16:27 (UTC-0600):
Carlos E. R. wrote:
Could you attach the script instead of posting the modifications? Surely I typed some error.
Sure:
We can't be answering cries for help by saying oh by the way, you have to download and appropriately install this first in order to give us the information we need in order to be able to help you, so I referenced this thread on https://progress.opensuse.org/issues/56189 but maybe better you attach the modified script to that issue page. -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/16/2020 04:49 PM, Felix Miata wrote:
David C. Rankin composed on 2020-01-16 16:27 (UTC-0600):
Carlos E. R. wrote:
Could you attach the script instead of posting the modifications? Surely I typed some error.
Sure:
We can't be answering cries for help by saying oh by the way, you have to download and appropriately install this first in order to give us the information we need in order to be able to help you, so I referenced this thread on https://progress.opensuse.org/issues/56189 but maybe better you attach the modified script to that issue page.
Felix, I presume Carlos has susepaste installed. I wasn't aware of the bug and I'm not sure what you mean by cries for help? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin composed on 2020-01-17 01:29 (UTC-0600):
I presume Carlos has susepaste installed. I wasn't aware of the bug and I'm not sure what you mean by cries for help?
People ask for help on mailing lists and forums. We tell them we need information. We tell them to use susepaste give it to us. They tell us susepaste reports failure. What are we supposed to do, spend another day to teach them how to use their broken system to install a fixed script to replace a long known broken one provided by the package management system on their brand new installation of the latest openSUSE release? -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* David C. Rankin <drankinatty@suddenlinkmail.com> [01-16-20 17:27]:
On 01/15/2020 04:32 AM, Carlos E. R. wrote:
On 14/01/2020 11.24, Carlos E. R. wrote: | On 14/01/2020 01.10, David C. Rankin wrote: | | ... | | | I have it working. Here are the modifications: | | Thanks. Modified mine and will try.
It hangs here, sorry.
Could you attach the script instead of posting the modifications? Surely I typed some error.
don't understand the problem. opensusepaste <document> worke perfectly fine here, openSUSE Tumbleweed -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/01/2020 23.27, David C. Rankin wrote: | On 01/15/2020 04:32 AM, Carlos E. R. wrote: |> On 14/01/2020 11.24, Carlos E. R. wrote: | On 14/01/2020 01.10, |> David C. Rankin wrote: | | ... | | | I have it working. Here are |> the modifications: | | Thanks. Modified mine and will try. |> |> It hangs here, sorry. |> |> Could you attach the script instead of posting the |> modifications? Surely I typed some error. | Sure: Thankyou, it works :-D - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXiGGUQAKCRC1MxgcbY1H 1bSJAJ9SfwwMNHYUaxFfOQmLxpk0tzcVyACgjL7O5L6zuczh2qrvZfxJuRsoaJs= =IimK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [01-17-20 05:17]:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 16/01/2020 23.27, David C. Rankin wrote: | On 01/15/2020 04:32 AM, Carlos E. R. wrote: |> On 14/01/2020 11.24, Carlos E. R. wrote: | On 14/01/2020 01.10, |> David C. Rankin wrote: | | ... | | | I have it working. Here are |> the modifications: | | Thanks. Modified mine and will try. |> |> It hangs here, sorry. |> |> Could you attach the script instead of posting the |> modifications? Surely I typed some error.
| Sure:
Thankyou, it works :-D
maybe you should try the Tumbleweed script, I just did and it worked fine. (/usr/bin/susepaste) for your convenience: http://wahoo.no-ip.org/~paka/susepaste and it is different than that provided by David. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 17/01/2020 14.40, Patrick Shanahan wrote:
* Carlos E. R. <> [01-17-20 05:17]:
maybe you should try the Tumbleweed script, I just did and it worked fine. (/usr/bin/susepaste)
for your convenience: http://wahoo.no-ip.org/~paka/susepaste
and it is different than that provided by David.
which is only a "repair" of the one supplied on Leap. Yes, the TW version does work, thanks. Comparison between the original script in Leap and the one in TW: cer@Telcontar:~/tmp> diff ~/fusermount/usr/bin/susepaste susepaste_tw 57a58,60
"x-s" ) SCHEMA="$2" shift 2 ;;
62c65 < echo " susepaste [-f format] [-n nick] [-t title] [-e expire] [file]" - ---
echo " susepaste [-f format] [-n nick] [-t title] [-e expire] [-s schema] [file]"
79c82,86 < if [ -r "$1" ]; then - ---
if [ "$1" ]; then if [ \! -r "$1" ]; then echo "Can't read $1" exit 2 fi 108c115,116 <
# Should SSL be used as schema [ "$SCHEMA" ] || SCHEMA=https 116c124 < http://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
120,121c128,129 < if expr "$URL" : "^http://susepaste.org/[0-9a-f]\+" > /dev/null; then < ID="`echo "$URL" | sed 's|^http://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" - ---
if expr "$URL" : "^${SCHEMA}://susepaste.org/[0-9a-f]\+" > /dev/null; then ID="`echo "$URL" | sed 's|^'"${SCHEMA}"'://susepaste.org/\([0-9a-f]\+\)[^0-9a-f]*|\1|'`" 123,124c131,132 < echo " http://susepaste.org/$ID" < echo " http://paste.opensuse.org/$ID"
echo " ${SCHEMA}://susepaste.org/$ID" echo " ${SCHEMA}://paste.opensuse.org/$ID" 126c134 < echo "http://susepaste.org/$ID" | xclip -selection XA_CLIPBOARD
echo "${SCHEMA}://susepaste.org/$ID" | xclip -selection XA_CLIPBOARD
cer@Telcontar:~/tmp> The copy to clipboard doesn't work in any, though. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXiIVkQAKCRC1MxgcbY1H 1eSwAJ9Osv0oyb6bVZogpxjuj8aZVIpf1wCgkgp2AyugjcX1db762HHqitP0rPE= =W5NU -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/14/2020 04:24 AM, Carlos E. R. wrote:
| Changes applied: | | (1) in curl, leave as http://susepaste.org
why not https?
It may work, but I seem to recall from an earlier discussion about the http/https issue that http should be used (as of that time) because it gave "?the redirector?" problems? There was ambiguity on the issue, so I just left it. -- David C. Rankin, J.D.,P.E.
participants (4)
-
Carlos E. R.
-
David C. Rankin
-
Felix Miata
-
Patrick Shanahan