Comments (6)
cc @icewind1991
from server.
The data/user
directory gets created at account creation time. Behavior looks the same at least back as far back as I checked (v27)...
I presume you mean the files
folder underneath? I'm not able to reproduce the files
folder getting created merely by running the occ user:info newuser
command.
from server.
The
data/user
directory gets created at account creation time. Behavior looks the same at least back as far back as I checked (v27)...
Yes, when creating in the web UI the folder is created but not through occ.
The steps to reproduce would be:
- Create a user
occ user:add --generate-password -- bob
(Do not try to access any user info through the web UI or otherwise) - Run
user:info <user>
from server.
Behaviour seems a bit strange as a data access should not create anything but since this has behaved this way for a long time maybe not worth changing @icewind1991?
from server.
Looks like the getStorageInfo()
used by user:info
calls setupFS()
regardless of login status:
server/core/Command/User/Info.php
Lines 77 to 94 in 2b2a866
Maybe?
diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php
index a8fb62099e2..75060ec8e2e 100644
--- a/core/Command/User/Info.php
+++ b/core/Command/User/Info.php
@@ -74,7 +74,7 @@ class Info extends Base {
'enabled' => $user->isEnabled(),
'groups' => $groups,
'quota' => $user->getQuota(),
- 'storage' => $this->getStorageInfo($user),
+ 'storage' => $user->getLastLogin() ? $this->getStorageInfo($user) : [],
'last_seen' => date(\DateTimeInterface::ATOM, $user->getLastLogin()), // ISO-8601
'user_directory' => $user->getHome(),
'backend' => $user->getBackendClassName()
Yes, when creating in the web UI the folder is created but not through occ.
Guess those should be made consistent too. :-)
from server.
Closing as discussed with @icewind1991
from server.
Related Issues (20)
- [Bug]: When i try to process an event i get error Parse error: Invalid Mimedir file HOT 4
- Column is type Bool and also NotNull, so it can not store "false" HOT 2
- [RFC] Files mime icons theming HOT 4
- [Bug]: Stuck at logging in HOT 1
- [Bug]: Can't share folders/files from webui, infinite load
- [Bug]: Share Expire Not Based On Default Time Zone
- Show "Edit locally" also on the folder page
- [Bug]: Extremely slow response to start loading the home page HOT 4
- [Bug]: The "Show Sharing option" and "Open details" buttons do not work HOT 6
- [Bug]: upgrade to 29.0.1 from 28.0.6 failed HOT 4
- [Bug]: Unable to access "ALBAUM" in Nextcloud 29.0.x HOT 7
- Trash/Deleted Files Search
- [Bug]: Adding Rackspace Cloud Files as external storage fails
- [Bug]: update from 28 to 29.0.1 fails due to index conflicts HOT 1
- [Bug]: Active directory accounts get blocked when you fail the login one time HOT 2
- [Bug]: Webdav HOT 6
- [Bug]: Some URI reroutes don't include the subdir (Nextcloud in a subdir) HOT 1
- Dossier as "case-collection"
- [Bug]: Missing /apps/files/img/computer.svg HOT 1
- [Bug]: AppConfigUnknownKeyException unknown config key, Error while generating metadata for fileid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.