You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-08-06 10:56:15

DROP TABLE
Member
Registered: 2020-04-13
Posts: 6

Generic object API access

Hello!

I have a problem with genericobject plugin.

When I trying to get some fields from generic object by REST API with token (/glpi/apirest.php/listSearchOptions/PluginGenericobjectCar), I get "500" code. Embedded object works fine.

I think it associated with access rights settings but I can't find that settings in GLPI.

I checked the /usr/share/glpi/plugins/genericobject/inc/field.class.php but found nothing what could help.

What I have to do for get generic object fieds by REST API?

Thanks.

Last edited by DROP TABLE (2020-08-06 10:58:03)

Offline

#2 2020-09-21 10:47:14

DROP TABLE
Member
Registered: 2020-04-13
Posts: 6

Re: Generic object API access

Any ideas?

Offline

#3 2020-10-22 09:27:42

DROP TABLE
Member
Registered: 2020-04-13
Posts: 6

Re: Generic object API access

Still nothing? No one uses REST with generic objects?

Offline

#4 2020-10-22 09:51:13

Jean-Christophe
Moderator
Registered: 2007-08-22
Posts: 734

Re: Generic object API access

I will have to deal with it in the incomming days.

I keep on mind you have the problem and I will come back to you if I found the graal :-)

Offline

#5 2021-03-18 10:12:57

Jean-Christophe
Moderator
Registered: 2007-08-22
Posts: 734

Re: Generic object API access

Finally, I have a solution !

But you need to change a file GLPI file to be able to use it.
In /glpi/marketplace/genericobject/inc/autoload.php or /glpi/plugins/genericobject/inc/autoload.php (depending of what you use), line 57,
change

return include($test);

into

return include_once($test);

Error 500 is gone.

Offline

Board footer

Powered by FluxBB