Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Client does not recognize maintenance mode #714

Closed
3 tasks done
dercorn opened this issue Jun 27, 2016 · 24 comments
Closed
3 tasks done

Client does not recognize maintenance mode #714

dercorn opened this issue Jun 27, 2016 · 24 comments

Comments

@dercorn
Copy link

dercorn commented Jun 27, 2016

Steps to reproduce

  1. Switch ownCloud server into maintenance mode

Expected behaviour

The iOS client should inform the user that the server currently in maintenance mode or unreachable.

Actual behaviour

The client shows no message and displays folders as empty

Affected software versions

All

Tell us what could be improved:

Have the client display a notification when the server is unavailable (HTTP 503)


BUGS & IMPROVEMENTS

PR:
#821
owncloud/ios-library#144

@nasli
Copy link
Contributor

nasli commented Jul 4, 2016

Same for the Android Client I guess, cc @davivel

This is an enhancement for the clients.

@nasli nasli added this to the backlog milestone Jul 4, 2016
@davivel
Copy link
Contributor

davivel commented Jul 5, 2016

Related: owncloud/android#1722

@cdamken
Copy link

cdamken commented Aug 13, 2016

00005749

@cdamken
Copy link

cdamken commented Aug 13, 2016

@davivel @nasli Is something we can do previous to "backlog"

@davivel
Copy link
Contributor

davivel commented Aug 16, 2016

@cdamken , I don't understand what you mean with "previous to backlog"?

Would you recommend this is dealt with higher priority?

@dercorn dercorn added Bug and removed Enhancement labels Aug 16, 2016
@dercorn
Copy link
Author

dercorn commented Aug 16, 2016

@davivel , after talking to @felixboehm , we agreed that this is clearly a bug and not an enhancement. Although this should cause no serious trouble, it would be extremely nice to see this resolved in the next release.

@davivel
Copy link
Contributor

davivel commented Aug 16, 2016

At this point, we should clarify "next release".

In the case of iOS, release 3.5.0 is taking an extraordinary time to be ready, and we can't delay it anymore.

Besides, the release after that needs to be really focused in granting correct operation for iOS 10. We are not sure yet of how many problems will appear, if it's not too much maybe we can sneak this in. Maybe. The fact that it's labelled as a bug or an enhancement makes no difference about the complexity to have it solved.

@dercorn
Copy link
Author

dercorn commented Aug 17, 2016

@davivel can you give an estimate on the complexity?

@davivel
Copy link
Contributor

davivel commented Aug 19, 2016

Complexity comes from the scope I'm considering is "whenever the iOS app accesses to the server, if this in maintenance mode, alert the user about this state". That leads me to two worries:

  • We have to cover the error in, potentially, all the views of the app.
  • We'll have to prevent to show repeated error messages if the user browses through the app.

If we could narrow down the scope, for instance, report only when the app is opened and/or when the user switches the account, the complexity would be lesser.

Summarizing: UX in the client is not defined, and I'm assuming a worst-case scenario.

@guruz
Copy link
Contributor

guruz commented Sep 14, 2016

... a third point to consider is if there is multi account

@davivel
Copy link
Contributor

davivel commented Sep 14, 2016

True, this is stuff per-account.

@dercorn
Copy link
Author

dercorn commented Sep 28, 2016

@guruz @davivel indeed! How does the client connect to the server? Do you read the status.php?

@davivel
Copy link
Contributor

davivel commented Sep 29, 2016

Yes, status.php is read during the creation of the account, and also every time the root folder of an account is refreshed.

@dercorn
Copy link
Author

dercorn commented Sep 29, 2016

Couldn't you use that for updating the status in the client? (Just in case you're not already doing exactly that)

@guruz
Copy link
Contributor

guruz commented Sep 30, 2016

(note that 503 might come at any time at any request, without having checked status.php in the last few requests. So the more clear indication for maintenance mode is 503 on any request)

@nasli nasli modified the milestones: 3.5.3, backlog Nov 23, 2016
@davigonz
Copy link

davigonz commented Dec 22, 2016

This bug could be fixed implementing a http response interceptor, evaluating the code and showing a message about the maintenance mode when the code is 503.

We don't need to take into account all the views or accounts, the interceptor catches the response wherever the user is browsing.

I've just started working on it in Android.

Edit: I've just seen that is ready to test on iOS.

@jesmrec
Copy link
Contributor

jesmrec commented Dec 23, 2016

Bug

With maintenance mode enabled in server:

  • If you set a folder as av. offline: alert message is shown
  • If you set a file as av. offline: alert message is not shown

Both are correctly set as av. offline locally, but the way the user is notified should be the same.

Device: iPhone 6Plus v10.1.1
Server 9.1.3

CC @ggdiez

@jesmrec
Copy link
Contributor

jesmrec commented Dec 23, 2016

The same happens with uploads, we have different behaviours:

  • Manual uploads: message is shown but files are not queued
  • Instant uploads: files are queued *
  • Share from external app: message is not shown and files are queued
  • New txt file: message is not shown and files are queued

Instant uploads are kind of different although they are uploads as well. Users do not know whether the server is in maintenance mode or not, so their pics and videos have to be queued in order not to lose them.

Device: iPhone 6Plus v10.1.1
Server 9.1.3

CC @ggdiez

@jesmrec
Copy link
Contributor

jesmrec commented Dec 23, 2016

In a shibboleth server with maintenance mode enabled:

  1. Input the server URL -> accepted (should it?)
  2. Webview is shown and credentials can be input

The following error is shown:

The server does not return a correct user ID

Could be prevented the login action in this case?

Device: iPhone 6Plus v10.1.1
Server 9.1.3

CC @ggdiez

@ggdiez
Copy link
Member

ggdiez commented Dec 30, 2016

@jesmrec when the user create a new txt file I think that it's better that the upload will be queued, the user has done the effort to write a text, show a message with the maintenance mode and discard the text file I think that is worse.

@jesmrec
Copy link
Contributor

jesmrec commented Dec 30, 2016

@ggdiez i agree in that behaviour for txt files.

@ggdiez
Copy link
Member

ggdiez commented Jan 5, 2017

@jesmrec Added support to maintenance mode in SAML login. Ready to test.

@jesmrec
Copy link
Contributor

jesmrec commented Jan 9, 2017

Approved

@jesmrec
Copy link
Contributor

jesmrec commented Jan 11, 2017

solved and merged. closing...

@jesmrec jesmrec closed this as completed Jan 11, 2017
@davivel davivel modified the milestones: 3.5.4, 3.5.3 Jan 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants