mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #572] User does not have a home folder #446
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#446
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thndrbck on GitHub (Jan 4, 2024).
Original GitHub issue: https://github.com/ciur/papermerge/issues/572
Originally assigned to: @ciur on GitHub.
In case you experience issues with docker image provided by linuxserver.io/papermerge, please open bug report in their repository.
Description
After creating a new user, logging out the admin user, and trying to log in as the newly created user, get a screen with only this message: User does not have home folder
Using the docker-compose file in the 3.0 documentation to run papermerge
Expected
Expected a return to the log in screen so that I could log in as the newly created user
Actual
No login screen. Just the above message
Info:
pmbizDockerLog.txt
@cezarasurdoiu commented on GitHub (Jan 4, 2024):
Hello!
I've also encountered the same issue. As a workaround, I've tried to update the home_folder_id by performing a PATCH request on the specified endpoint (api/users/user_id), but without success. I've tried to change any other field (e.g. username, email) and it has worked, but for home_folder_id it still assigns null.
@ciur commented on GitHub (Jan 4, 2024):
@thndrbck, @cezarasurdoiu thank you for reporting this issue. This is definitely a bug.
The bug is there because this line of code was not invoked upon user creation
Did you create new user via web UI ?
Until fix is available, here is the workaround:
While Papermerge instance is up and running , you need to enter into web app's docker container.
For that:
In example above, web app container is
8b74e4fac42f.Then:
While in container, activate app's virtual environment (without changing current folder, which by default is
/core_app):Then enter into Django's shell:
In django shell run following commands (let's say user without home folder has username
john):At this point your user should have both home folder and inbox folder; you can double check that with (while in Django's shell):
Both statements should return valid home/inbox folder with UUIDs
@cezarasurdoiu commented on GitHub (Jan 5, 2024):
Hello, @ciur ! Yes, in my case, the new user was created via web UI. Thank you for the detailed workaround, it worked for me. Now, the login with a new user works as expected!
@ciur commented on GitHub (Jan 13, 2024):
I cannot reproduce the problem locally, but intuitively I think where the problem may be.
This PR should fix the problem. The change is about creating users/inbox/home in one DB transaction.
The fix will be available in 3.0.1 release.
@thndrbck commented on GitHub (Jan 16, 2024):
I'll test it again with version 3.01
On Sat, Jan 13, 2024, 2:17 AM Eugen Ciur @.***> wrote: