Forum

ProjeQtor API - bug...
 
Notifications
Retirer tout

ProjeQtor API - bug with 11.2.4

2 Posts
2 Utilisateurs
0 Reactions
843 Vu
(@dmichon)
Posts: 1
New Member
Début du sujet
 
[#9511]

Hello,

For your information, we had an issue with API in the latest stable version (11.2.4).

We upgrade recently and some users had issues with "search" types queries. Search" type queries no longer take strings into account.

Request like : 
https://ourprojeqtor.com/api/index.php=uri=Milestone/search/name=anycharacterstring

But integer request are working well, like :
https://ourprojeqtor.com/api/index.php?uri=Milestone/search/id=3000

We did a diff between an older version and we saw that a modification has been made to the "projeqtorapiindex.php" file:
--> Older version (working) : $addWhere=urldecode($split[$cpt]);

--> New version (not working properly) : $addWhere=$split[$cpt];

We had the decode to the file and it's now working well again. 

I'll let you know in order to correct the bug for users using the API.

 


 
Posté : 08/07/2024 4:25 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

First your syntax to call API is wrong, it should be   https://ourprojeqtor.com/api/Milestone/search/name=anycharacterstring
With .htaccess (provided in zio file) to convert to target uri

Then, you should indicate search/name='anycharacterstring' as it is a string


 
Posté : 08/07/2024 5:18 pm
Share:
Retour en haut