Up !
Okay well, we are investigating for 2 months and we still don’t have any idea of what is happening
For now, we are on IFS 9 I am not sure that this API is available on this version. Is there any complete doc about this restful API with all callable url etc.. ? I didn’t saw in the doc I’ve read that the Access Provider was deprecated
Hey,I tried to put server disconnect after each request and reinstanciate Server object before each request. But we still have random errors like bad credentials thrown by IFS. In the documentation here it speaks about Open ID and we wonder if we need to use that or just the credentials on server?
@infaz Thanks for your message. I went through all the documentation and I already saw this block of code (here). It gives an idea of how to use collections, it helped me with this subject but it didn’t help a lot with the use of Server object. As @dsj suggested, I wonder if we need to close/disconnect the server after each request, this seems to be a weird utilization of a library.Can we have multiple server Objects open at the same time? In the documentation I haven’t seen an example where server.disconnect() is called after a request? Is it the way to do it? Edit: I saw in doc that they talk about a ‘OpenID’ connection system, do we need to use that?Thanks for your help :)
Thanks for your answer. I hope you could find some examples a little more complete! :)Each user has an Oracle account so can be identified by the WebLogic. We don’t make any filtering on queries because it should be done in the WebLogic that IFS provides us and that how this is done in the clickone’s client. We just tested with a colleague connecting two users retrieving their activity. I was in local (Front and back) and my back was connected to the preprod WebLogic so I could debug our back end in java. We could reproduce our error: user A sees user B’s activities but the Server sent is actually user A’s (100% sure). We look at the logs in WebLogic and for the request made by user A, web logic sees user B that’s why it returns bad activities. I don’t get how this is possible… :’( Do you have any idea?
Yes so for the Map it’s the Java Data Structure :private final Map<String, Server> servers;The error are really weird. For example when two users are connected (James and Patrick). Patrick click on a select to load activities there are properly loaded, if James click on his select, it will return a list of Patrick’s activities which doesn’t make any sense. I checked if the Server variable was the good one and yes. Backend receives James request, make a call to the weblogic via the Java Access Provider using his Server object but it returns Patrick’s activities... We also have, this kind of error on random request :ifs.fnd.ap.APException: You have entered an invalid username and/or password, or you do not have authorization to perform the requested action.Hint: Passwords are case sensitive. at ifs.fnd.ap.IfsClientGatewayProxy.handleHttpOther(IfsClientGatewayProxy.java:671) ~[ap-1.0.jar:${fndext_version}-${build_no}] at ifs.fnd.ap.IfsClientGatewayProxy.handleHttpUnAut
Server is an object from the Java library published by IFS (Access Java Provider) Documentation here.The PHP app contact the Java backend which contacts the IFS webLogic which make operations on Orace database. So I guess we are connecting to the application server. We are looking for logs in weblogics and Oracle. It’s in progress. Thanks for your help
Hey,Hmm I guess so, here is a sample of my backend code which retrieve the user organization code :Server server = new Server();server.setConnectionString(ifsProperties.getConnectionString());server.setCredentials(username, password); // Connected user credentialsPlsqlSelectCommand cmd = new PlsqlSelectCommand(server, "SELECT COMPANY_ID, ORG_CODE, VALID_FROM, VALID_TO FROM &AO.COMPANY_PERS_ASSIGN_ACT WHERE EMP_NO = :EMP_NO AND :DATE BETWEEN VALID_FROM AND VALID_TO");Record params = cmd.getBindVariables();params.add("EMP_NO", user.getIdentity());params.add("DATE", DateUtil.asDate(monday));RecordCollection result = cmd.executeQuery();// ...It seems to be close of what I found in the documentation Are we doing something wrong?
Up ! Sometime Ihave an error that shows up : `The Timman Job Trans object is locked by another user.` Do you know what can cause that?When I am in local I don’t have any error but when I deploy my backend in java and my front it shows this error ramdomly...
Okay, and do we need to redefine Server in each controller or we can store it?
Hello, Yes I tried but I guess the problem is directly linked to IFS server. I will try to find some log.Thanks for your help
Okay thanks for your answers.I am disappointed because I have some unexplainable “Bad credentials” error on random URLs and I thought it could be the issue. Usually the property CatchExceptions is set to false.If you have any idea about an “unexplainable” bad credential error let me know :D
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.