Larry, First, about what you are seeing.
The server SHOULD NOT perform the query and should return an error indicating that you have a NULL qualifier and that is not allowed. HOWEVER, it seems that somehow, a web service is getting by that check in the server. We ran a test internally after seeing this note and confirmed that the query gets through and searches the database. We consider this a bug and one is entered to be fixed for future releases and for the 8.1 service pack line. You are correctly configured, but for some reason, web services are not obeying the rules. On the thread issue, killing an AR System server thread does no good. The problem is that the AR System server prepares the command and issues it to the DB and waits for a reply. Killing the AR System thread just kills a waiting thread but the DB still has the request and is still processing. So, even if you could and it worked OK, it would not help you. We have tried in the past to be able to stop a search once in flight, but there is simply no operation available from the DB vendors for doing that. Once started, it runs to completion. We even tried to have a model where we had a parallel thread to the DB and tried to kill the DB connection. But, that just freed up our thread and the DB kept running. The key is to prevent the running in the first place. The good news is that you configured things to do that. The bad news is that we are not paying attention for some reason on the channel you are using. Thank you for calling this case out so it can get "we need to check the option for web services searches" onto the fix list for the future. Doug Mueller From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of L G Robinson Sent: Tuesday, July 30, 2013 5:56 AM To: [email protected] Subject: Re: Web services with null qualifications ** Hi Folks, Thanks for the replies. I agree with Alfred and Tauf... it would be best to wrap the WS calls inside an application or some other interface. And we have done that. Some of our PHP and Perl experts have built modules that expose the Web services indirectly. But when these modules were built, we weren't really aware of this issue so no effort was made to ensure that the qualification was not null. I plan to go back to these groups and request this type of checking be added. However, we have also published the Web services directly so there is the possibility that they are out there, "in the wild". I was hoping there were steps that I could take from the Remedy side to make sure that WS requests with null qualifications could be caught and handled. Thanks again for your assistance. On Mon, Jul 29, 2013 at 3:49 PM, Differ, Alfred W CTR PHD NSWC, 210 <[email protected]<mailto:[email protected]>> wrote: With a previous employer our users were interacting with a web app that would construct the WS request. We just made sure the qualification line could not be null in the app and then intentionally hid the WS URL from the outside world. With no way to get inside except through that app, we prevented the null qualification or at least made sure it was our error if it DID happen. -al -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]<mailto:[email protected]>] On Behalf Of L G Robinson Sent: Monday, July 29, 2013 12:33 PM To: [email protected]<mailto:[email protected]> Subject: Web services with null qualifications ** Hi Folks, We make heavy use of Web services here at NC State and I have come across a problem. We have a number of standard get-entry and get-list operations defined against our main form. These operations have the usual: Qualification StartRecord MaxLimit input parameters. The problem... If a user of the Web services invokes one of these operations with a null qualification, this results in a full table scan. Obviously, this is not ideal for a table with ~275K records. My server settings are set to disallow unqualified searches (Allow-Unqual-Queries: F) and there is also a limit on the number of returned records (Max-Entries-Per-Query: 50000). Apparently, the Web services are exempt from these limitations. Does anyone have any suggestions on how I can prevent these table scans? It doesn't happen often but when it does, I end up restarting the AR server as performance eventually becomes unacceptable before the scan completes. On a side note, if I know the server thread that is processing the table scan, is there any way to kill that process without killing the whole server? Thanks for any insights you might have. ARS: 7.6.03 on Solaris 10. Mid Tier: 7.6.04 SP3 201208101612 Hotfix on Red Hat Linux Tomcat: 6.0.35 Java: 1.7.0_05 Larry Robinson Remedy Developer/Admin NC State University Raleigh, NC PS: I voted. ;-) _ARSlist: "Where the Answers Are" and have been for 20 years_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org<http://www.arslist.org> "Where the Answers Are, and have been for 20 years" _ARSlist: "Where the Answers Are" and have been for 20 years_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

