After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756855 - Handle errors when using paste service
Handle errors when using paste service
Status: RESOLVED OBSOLETE
Product: polari
Classification: Applications
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-20 11:00 UTC by Florian Müllner
Modified: 2021-06-10 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Polari Paste Service Error Handling Wire (rev1) (66.80 KB, image/png)
2015-10-29 15:58 UTC, Bastian Ilsø
  Details
Handle errors when using paste service (4.69 KB, patch)
2015-12-01 10:59 UTC, Kunaal Jain
none Details | Review
Handle errors when using paste service (4.81 KB, patch)
2015-12-01 11:28 UTC, Kunaal Jain
needs-work Details | Review

Description Florian Müllner 2015-10-20 11:00:57 UTC
The upload to the paste service can fail, either because the service itself is down/overloaded (hopefully rare), or because the called method returns one of the errors indicated in the API[0]. At least err_data_too_big is something we cannot address on our side, so we should find a way to report the error to the user.

[0] http://sayakb.github.io/sticky-notes/pages/api/
Comment 1 Bastian Ilsø 2015-10-29 15:58:43 UTC
Created attachment 314414 [details]
Polari Paste Service Error Handling Wire (rev1)

Here's a proposal. (It assumes we wish to continue using in-app notifications for uploading to a paste service).
Comment 2 Kunaal Jain 2015-10-29 16:20:25 UTC
(In reply to Bastian Ilsø from comment #1)
> Created attachment 314414 [details]
> Polari Paste Service Error Handling Wire (rev1)
> 
> Here's a proposal. (It assumes we wish to continue using in-app
> notifications for uploading to a paste service).

Perhaps style it with error style, just the way we started doing with wrong IRC commands.
Comment 3 Bastian Ilsø 2015-11-06 10:29:58 UTC
(In reply to Kunaal Jain from comment #2)
> Perhaps style it with error style, just the way we started doing with wrong
> IRC commands.

Do you mean to the chat entry? When we get this error, the entry has already been cleared so I don't think that behavior can be applied in this situation.

If you mean to the notification itself, well I think having the dialog-error icon is a sufficient indicator for this case. Also, AFAIK, the error style is intended only to input fields.
Comment 4 Kunaal Jain 2015-11-06 16:40:42 UTC
(In reply to Bastian Ilsø from comment #3)
> (In reply to Kunaal Jain from comment #2)
> > Perhaps style it with error style, just the way we started doing with wrong
> > IRC commands.
> 
> Do you mean to the chat entry? When we get this error, the entry has already
> been cleared so I don't think that behavior can be applied in this situation.
> 
> If you mean to the notification itself, well I think having the dialog-error
> icon is a sufficient indicator for this case. Also, AFAIK, the error style
> is intended only to input fields.

I meant notification itself. We are doing this in case of wrong IRC commands, highlight the error message with error class.

But that's a small thing to include error class or not. I'll write a patch for this as soon as I get some time. Caught up in college exams these days :(
Comment 5 Kunaal Jain 2015-12-01 10:59:51 UTC
Created attachment 316584 [details] [review]
Handle errors when using paste service
Comment 6 Kunaal Jain 2015-12-01 11:28:21 UTC
Created attachment 316585 [details] [review]
Handle errors when using paste service

fixed some nitpicks
Comment 7 Bastian Ilsø 2015-12-08 16:00:35 UTC
Review of attachment 316585 [details] [review]:

::: src/pasteManager.js
@@ +323,3 @@
 });
+
+const ErrorNotification = new Lang.Class({

Instead of making a new notification, it might make more sense to use a GtkStack in the existing Upload notification class and cross-fade over to the error if we encounter one. What do you think?
Comment 8 André Klapper 2021-06-10 11:05:13 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Polari, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/polari/-/issues/

Thank you for your understanding and your help.