You are not logged in.
Have you call call methodSetMyEntity to affect entity ConectarIgualdad before call methodsetTicketAssign?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Yes!, please take a look at post #18, I send SetMyEntity(1) just before setTicketAssing
Offline
What is the status of your ticket?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
What is the status of your ticket?
The ticket is open (planned)
Offline
I don't understand, i have no problem with webservices at my job.
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
I don't understand, i have no problem with webservices at my job.
Have you glpi 8.5.4 and webservices 1.5.0 ?
Offline
I don't understand, i have no problem with webservices at my job.
In your banner you said that you have GLPI 0.83.8 svn and GLPI 0.85 SVN I was asking if we're testing the bug in the same software enviroment
Last edited by damian (2015-09-05 21:24:10)
Offline
Behavior confirmed :
GLPI 0.85.4/WEBSERVICES 1.5.0/ Wampserver 2.4
using xmlrpc ;
webservices called from a test.php file;
logged in : reponse OK
set my entity to "1" (same as ticket) response : OK entity set
set my profile to "4" response : OK profile set to super admin
call setticket assign : response KO : xmlrpc error(16): Command not allowed
ticket is ok, I can assign ticket to me in helpdeskinterface in this entity with this profile.
still investigating, but really looks like a bug, isn't it ?
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
here's SQL query used by checkusersRights : ( methodcommon.class.php)
$query = "SELECT `glpi_profilerights`.`rights`
FROM `glpi_profilerights`
LEFT JOIN `glpi_profiles`
ON (`glpi_profiles`.`id` = `glpi_profilerights`.`profiles_id`
INNER JOIN `glpi_profiles_users`
ON (`glpi_profiles`.`id` = `glpi_profiles_users`.`profiles_id`)
WHERE `glpi_profiles_users`.`users_id` = '$user'
AND `glpi_profilerights`.`name` = '$right'
AND (`glpi_profilerights`.`rights` & ". $valright.") ".
getEntitiesRestrictRequest(" AND ", "glpi_profiles_users", '', $entity, true);
I think ")" is missing somewhere. I would write :
$query = "SELECT `glpi_profilerights`.`rights`
FROM `glpi_profilerights`
LEFT JOIN `glpi_profiles`
ON (`glpi_profiles`.`id` = `glpi_profilerights`.`profiles_id`)
INNER JOIN `glpi_profiles_users`
ON (`glpi_profiles`.`id` = `glpi_profiles_users`.`profiles_id`)
WHERE `glpi_profiles_users`.`users_id` = '$user'
AND `glpi_profilerights`.`name` = '$right'
AND (`glpi_profilerights`.`rights` & ". $valright.") ".
getEntitiesRestrictRequest(" AND ", "glpi_profiles_users", '', $entity, true);
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
That was it.
now it works fine.
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
YES!....! I confirm!! I modify methodcommon.class.php and now is working as expected!
Thank you ....
Can you fix this in the new version?
PD: I find 2 more bugs, One is posted to this phorum (related to (I think) a bug in methodinventaire.class.php line 579 ) and the other I found this week related to glpi.getTicket (shows ticket not found when the ticket exists and I have permission to see and modify it) . Can you also help me with those bugs?
Again, Thank You in advance!
Offline
Corrigé
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline