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

fix(types): correct types for quota bytes #378

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 24, 2024

As per RFC the value shall be octets representing the quota, in all cases I know the value will be parsed to number by the XML parser. (tested e.g. with Sabre / Nextcloud).

While any allowed everything, the type string for quota-used-bytes was wrong as mostly a number is returned (but there might be rare cases of string, like "unlimited" (even if the RFC does not mention this), so lets keep the string type in addition.

@susnux susnux force-pushed the fix/props branch 2 times, most recently from f37a792 to 1d9f2d9 Compare July 24, 2024 21:33
source/tools/dav.ts Outdated Show resolved Hide resolved
source/tools/dav.ts Outdated Show resolved Hide resolved
source/tools/dav.ts Outdated Show resolved Hide resolved
As per RFC the value shall be octets representing the quota,
in all cases I know the value will be parsed to `number` by the XML parser.
(tested e.g. with Sabre / Nextcloud).

Signed-off-by: Ferdinand Thiessen <[email protected]>
@perry-mitchell
Copy link
Owner

perry-mitchell commented Aug 2, 2024

Thanks @susnux !

Will push a release today.

@perry-mitchell perry-mitchell merged commit 16f1475 into perry-mitchell:master Aug 2, 2024
6 checks passed
@susnux susnux deleted the fix/props branch August 2, 2024 13:45
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

Successfully merging this pull request may close these issues.

2 participants