Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storagelimit is shown as -2 when using external storage app #608

Closed
ntimo opened this issue Jul 4, 2018 · 12 comments
Closed

Storagelimit is shown as -2 when using external storage app #608

ntimo opened this issue Jul 4, 2018 · 12 comments
Milestone

Comments

@ntimo
Copy link

ntimo commented Jul 4, 2018

Steps to reproduce

  1. Active the external storage App
  2. Mount a storage (I only tested webdav)
  3. Set the mount point to /
  4. Open your iOS Nextcloud App and look at the storage limit

Expected behaviour

It should show a unlimited max storage like the web version of nextcloud does

Actual behaviour

It shows -2 here is a screenshot:
bug

Server configuration

Operating system:
Ubuntu 16.04

Web server:
Nginx

Database:
Mysql

PHP version:
7.2.4-fpm

Nextcloud version: (see Nextcloud admin page)
13.0.4

Updated from an older Nextcloud/ownCloud or fresh install:
fresh installation

Are you using external storage, if yes which one: local/smb/sftp/...
webdav mounted to /

Are you using encryption: yes/no
yes

iOS version

11.4

App version

2.21.3.1

@marinofaggiana
Copy link
Member

Hi, this is not a issue of iOS, I view only the data from API server ...

@ntimo
Copy link
Author

ntimo commented Jul 9, 2018

Hello,
I already created a issue here: nextcloud/server#10011. But there I was told to create a issue for the iOS app:
"This is an issue within the iOS app. Thus please report it to the maintainers of that app in its repository: https://github.com/nextcloud/ios"

@mario
Copy link
Contributor

mario commented Jul 9, 2018

@marinofaggiana @ntimo "-2" means that we don't know the available space.

@marinofaggiana the UI should represent this. So this is indeed an iOS bug.

@marinofaggiana
Copy link
Member

mmmm I am not convinced ... @ntimo can you create a user test for me ? (ios @ nextcloud dot com)

@mario
Copy link
Contributor

mario commented Jul 10, 2018

@marinofaggiana this is how we do it in Android :P

@marinofaggiana
Copy link
Member

@mario I want lock the API return before modify the code

@marinofaggiana marinofaggiana added this to the v2.22.0 milestone Jul 17, 2018
@marinofaggiana
Copy link
Member

@mario I think that this is a bug of API Server side for the "quota" field in @"ocs/v2.php/cloud/user", now I have add a check for < 0 but this is not a good job

marinofaggiana pushed a commit that referenced this issue Jul 17, 2018
@mario
Copy link
Contributor

mario commented Jul 17, 2018

@marinofaggiana I don't think so.

/**
 * Quota return value for a not computed space value.
 */
public static final long SPACE_NOT_COMPUTED = -1;

/**
 * Quota return value for unknown space value.
 */
public static final long SPACE_UNKNOWN = -2;

/**
 * Quota return value for unlimited space.
 */
public static final long SPACE_UNLIMITED = -3;

/**
 * Quota return value for quota information not available.
 */

public static final long QUOTA_LIMIT_INFO_NOT_AVAILABLE = Long.MIN_VALUE;

@marinofaggiana
Copy link
Member

oh !? @mario where are this comment ?

@marinofaggiana
Copy link
Member

marinofaggiana commented Jul 17, 2018

No comment. thx Mario

@mario
Copy link
Contributor

mario commented Jul 17, 2018

You're welcome @marinofaggiana, always happy to help.

marinofaggiana pushed a commit that referenced this issue Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants