HTTP service invoking a chgcurlib on instance call

Any IBM i topic that does not fit in another forum
Post Reply
jlenzi@caesars.com
Posts: 1
Joined: Tue Jun 06, 2023 12:07 am

HTTP service invoking a chgcurlib on instance call

Post by jlenzi@caesars.com »

Hello Scott

I am running into a problem with my HTTP service with the below apache script where my program is in the cmliblv and am using a good library list for my job description however, the directory container to allow access to the program for the client also acts as a chgcurlib in the http instance and is causing me to pick up an object that would normally not be picked up by the jobd library list. Is there a way to have process avoid invoking the chgcurlib cmliblv to occur when my http rpg instance fires up to process the request? Thank you for your help

ScriptAlias /marker /qsys.lib/cmliblv.lib/cmgmrkmain.pgm
<Directory /qsys.lib/cmliblv.lib>
Order Allow,Deny
Allow From all
</Directory>

HTTPSubsystemDesc QHTTPSVR/QHTTPSVR
HTTPStartJobDesc CACCMSENV/CACWEBSRV
HTTPStartJobQueue *JOBD
HTTPRoutingData *JOBD
AccessFileName .htaccess
emaxt6
Posts: 3
Joined: Mon Jun 05, 2023 4:02 pm

Re: HTTP service invoking a chgcurlib on instance call

Post by emaxt6 »

I dont think it is httpapi related, but...
Have you tried inside the Directory to set a particular user with his required jobd ?
Scott Klement
Site Admin
Posts: 652
Joined: Sun Jul 04, 2021 5:12 am

Re: HTTP service invoking a chgcurlib on instance call

Post by Scott Klement »

The IBM HTTP server always sets the current library to the one that the program is in -- so your existing setup should already change the current library as you desire.

This has absolutely nothing to do with HTTPAPI, so I am moving it to the general forum.
Post Reply