Comments (7)
I have isolated the issue to be on this file - /nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php around line 217:
// Try to get the sender name from the current user id if available.
if ($this->userId !== null && ($senderName === null || empty(trim($senderName)))) {
$senderName = $this->userManager->getDisplayName($this->userId);
}
When the event is created on Thunderbird, there is no userID set and that's why the sender name defaults to the default "Nextcloud". I propose to rewrite this secton this way:
$sender = substr($iTipMessage->sender, 7);
// Try to get the sender name from the current user id or from sender if available.
if ($senderName === null || empty(trim($senderName))) {
if ($this->userId !== null){
$senderName = $this->userManager->getDisplayName($this->userId);
} else {
$senderName = $this->userManager->getDisplayName($sender);
}
}
Basically use the Sender from the iTipMessage object when userID is also null.
from server.
cc @ChristophWurst @miaulalala @SebastianKrupinski
from server.
Issue confirmed.
@GalacticWave your solution will not work. userManager->getDisplayName() requires a NC UID and $iTipMessage->sender() at this point is a email address.
from server.
Diagnosed.
This an upstream issue caused by a fresh session with no cookie information. Causes userId to be null.
from server.
I found that email address is the userID used in the Database. Hence, I simply used the sender which is also email address. Mabye because on my server, I used the email address as the username as well for all the accounts created. But seems like there is more to this that I didn't consider.
The thing I can think of now is whether its possible to get the First and Last name from the user DB by querying using email address. But didn't find any existing functions or user cache functions that can do that.
from server.
Querying the database for email address will not work, as email address are NOT unique. You can have multiple users with the same email address, but userId are unique.
from server.
Something isn't right with the authentication. The property $userId
is injected via our DI. It seems to be null but this shouldn't be the case if the request is authenticated (which it is via the user and (app) password that Thunderbird is using).
from server.
Related Issues (20)
- Web settings design update & standardization
- [Bug]: Error "Argument #3 ($paramType) must be of type string, null given" within WebDav SEARCH metadata API HOT 1
- [Bug]: db:convert-type uses systemConfig instead of command line parameters for connection to new target database HOT 4
- [Bug]: Contacts menu broken if uids in oc_cards contain slashes
- [Bug]: Error when updating to Nextcloud Version 29: InvalidArgumentException: Index name "share_id_index" for table "oc_onlyoffice_permissions" collides with the constraint on table "oc_federated_reshares". HOT 4
- [Bug]: File not found when clicking on Account or Administration Documentation HOT 1
- [Bug]: Typo "therefor" HOT 1
- Improve queueing for deletion HOT 1
- Hello, when using the command [given in the documentation](https://docs.nextcloud.com/server/latest/admin_manual/groupware/contacts.html#system-address-book), I get the following error: HOT 1
- [Bug]: e.response.data.ocs error while setting link expiration date for folder HOT 1
- [Bug]: Running user:info on user who hasn't logged in creates a folder HOT 6
- [Bug]: Impossible to open a docx file in onlyoffice module from nextcloud
- [Bug]: Missing index for systemtag_object_mapping.objectid
- Option to disable the deletion of files within a subtree if the the folder is protected from deletion HOT 2
- [Bug]: Disproportionate 'Log in with a device' button when count of alternative logins is not null
- Files app: shared drive HOT 4
- Some recent Korean translations on Transifex are not being reflected anymore. HOT 1
- Hide files and folders without permissions HOT 1
- [Bug]: "Editing session has expired. Please reload the page." on public share links with readme.md
- CalDavBackend.search does not handle VTODO's properly 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.