-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: User profile picture not showing in Nextcloud contacts avatar #32271
Comments
Tried both with PNG and JPG I did a clean install of Nextcloud for development environment (Version 25) and the problem also occurred Photo has been inserted into profile and Spreed, but not contacts |
When saving the image it is generating the logs below in the nextcloud.log file
{
"reqId": "YnUk_h5I-D4x2Hi7NvicWwAADSI",
"level": 0,
"time": "2022-05-06T13:39:10+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "core",
"method": "POST",
"url": "/index.php/avatar/",
"message": "OC_Image->fixOrientation() Image is not a JPEG.",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUk_h5I-D4x2Hi7NvicWwAADSI",
"level": 0,
"time": "2022-05-06T13:39:10+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "core",
"method": "POST",
"url": "/index.php/avatar/",
"message": "OC_Image->fixOrientation() Orientation: -1",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUlBm8P4SO7f35Yxjrp1QAAjAI",
"level": 1,
"time": "2022-05-06T13:39:18+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "no app in context",
"method": "POST",
"url": "/index.php/avatar/cropped",
"message": "Deprecated event type for OCP\\IUser::changeUser: Symfony\\Component\\EventDispatcher\\GenericEvent is used",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUlBm8P4SO7f35Yxjrp1QAAjAI",
"level": 0,
"time": "2022-05-06T13:39:18+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "dav",
"method": "POST",
"url": "/index.php/avatar/cropped",
"message": "Activity generated for a changed card in addressbook 1",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUlBm8P4SO7f35Yxjrp1QAAjAI",
"level": 1,
"time": "2022-05-06T13:39:18+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "no app in context",
"method": "POST",
"url": "/index.php/avatar/cropped",
"message": "Deprecated event type for \\OCA\\DAV\\CardDAV\\CardDavBackend::updateCard: Symfony\\Component\\EventDispatcher\\GenericEvent is used",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUlBm8P4SO7f35Yxjrp1gAAjAI",
"level": 0,
"time": "2022-05-06T13:39:18+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "core",
"method": "GET",
"url": "/index.php/avatar/matheus.stolf/32?v=-739",
"message": "Avatar requested in deprecated size 32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
{
"reqId": "YnUlBm8P4SO7f35Yxjrp3wAAjAA",
"level": 0,
"time": "2022-05-06T13:39:18+00:00",
"remoteAddr": "172.23.31.158",
"user": "matheus.stolf",
"app": "core",
"method": "GET",
"url": "/index.php/avatar/matheus.stolf/145?v=-739",
"message": "Avatar requested in deprecated size 145",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"version": "25.0.0.1"
}
But I don't know if it's related to the failure in question, I believe it may be something in the request that loads the contacts (contactsmenu/contacts) |
Same issue I had this ticket open since Feb 7 and still nothing from dev #31065 |
I'm analyzing the sources, it seems I'm able to track the problem. There is the file contact.handlebars, in this source code there is a validation that only applies the image, when there is a value in the contact.avatar Looking at the return of the request, it is always coming with null values, both the id and the avatar Follow the object returned from the request
|
Do you know what needs to be changed in the code I'll try it |
I still can't find the reason for the avatar field not receiving the value in the request, I'm still investigating the problem, but the update will include it here in the issue |
@AndyXheli, I made the correction by the pull request above, it is for review, but the insertion of the code of this pull request solved the problem here for me, just wait for the reviewers to approve the pull request merge |
Any news here? My instance is also affected. |
Still waiting on the pull to get approved! |
Bug description
User profile picture not showing in Nextcloud contacts avatar
The avatar appears, but only the generic letters generated when creating the user
Steps to reproduce
Expected behavior
Display the user's avatar with the user's profile picture
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
NA
The text was updated successfully, but these errors were encountered: