Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

ProjeQtor API - bug...
 
Notifications
Clear all

ProjeQtor API - bug with 11.2.4

2 Posts
2 Users
0 Reactions
871 Views
(@dmichon)
Posts: 1
New Member
Topic starter
 
[#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.

 


 
Posted : 08 Jul 2024 16H25
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 08 Jul 2024 17H18
Share:

Scroll to Top