Closed M-Falken closed 1 year ago
We are having the same problem. When synchronizing through iCal, only external events are being synced. No planned tasks in the tickets are being synchronized through iCal.
Hi,
I confirm the issue. This is due to this commit: c4075349e3eb0b98733fb5cc1c65460c5d83da4d
Hi, patch applied and tested with ical and webcal. sorry but same issue...only external events shown
It's not fixed, the bug still exists. despite to be super admin or by using a tech profile. When I remove the code from the latest patch involving the rights (including the old code that the patch replaces), everything works fine. To put it simply, if I use the file from 10.0.6 everything works fine. So something is still wrong in the last https://github.com/glpi-project/glpi/pull/14751/commits/d2c995dd99c7be9775b2a299e838fdf420f310b1
It's not fixed, the bug still exists. despite to be super admin or by using a tech profile. When I remove the code from the latest patch involving the rights (including the old code that the patch replaces), everything works fine. To put it simply, if I use the file from 10.0.6 everything works fine. So something is still wrong in the last d2c995d
I just tried and I was able to get ticket tasks, project tasks, reminders, ...
Whether you are under the profile of a technician or not? And with a task within a ticket assigned to a sub-entity?
We just upgraded to 10.0.7 from GLPI 9.5 and we are having the same issue (exported plannings are empty). I tried to apply 422f73e, but it doesn't fix it for us either.
To prevent any doubts, I applied the patch this way (while being inside the GLPI's directory):
curl https://github.com/glpi-project/glpi/commit/422f73ea2e272260e68afd236f8ca09e8e17b5bf.patch | patch -p1
and then checked that the file was correctly patched.
However, if I comment out the whole "reset/clean rights" code, the exported planning work again as expected.
If this may help, all our tickets are created in sub-entities and all technicians have the "Technician" profile applied recursively on the root entity, and set as default in their user settings. We use exclusively ticket tasks.
Please let me know if there is anything I can provide to help debug the issue ;)
@Zoddo
Please try with GLPI 10.0.8. It has been released a few minutes ago. If you can reproduce, I will reopen the issue.
@cedric-anne I just upgraded our test instance to 10.0.8, and I still reproduce the issue.
I quickly looked at this. For me, this issue is caused by removing all rights except READ
, especially on ticket
and task
.
The read right on tickets give access only to tickets where the current user is either a requester or an observer.
For tasks, the read right give access only to public tasks (or private tasks created by the current user).
To correctly access tickets/tasks that should be accessible to the current user, the following additional rights should be retained :
Without this, only private tasks created by the current user in its own tickets will be accessible.
In fact, forcing READALL for tickets and SEEPRIVATE for tasks by adding the following code just after the rights-cleaning code "fix" the issue for me:
$_SESSION['glpiactiveprofile']['ticket'] = 1025;
$_SESSION['glpiactiveprofile']['task'] = 8193;
(⚠️ To anyone else coming across this comment, do not do that in any live instance, because it will bypass rights assigned to the user)
Hi,
Sorry for the (really) late delay. #15157 should fix this.
Could you confirm that everything works as expected?
Hi, I confirm that #15157 fixes the issue for me. Thanks!
Fixed by #15157
Code of Conduct
Is there an existing issue for this?
Version
10.0.7
Bug description
Hi We do not have anymore planned tasks when we export as webcal or ical. Only external events are display It works ok on a v10.0.6
Thanks
Relevant log output
Page URL
webcal://example.com:443/front/planning.php?genical=1&uID=7982&gID=0&entities_id=0&is_recursive=1&token=**
Steps To reproduce
Your GLPI setup information
Informations sur le système, l'installation et la configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response