Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore any CSPDEBUG queryparam (fixes #8) #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cls/_pkg/isc/rest/handler.cls
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,9 @@ ClassMethod DispatchClassAction(resourceName As %String, action As %String) As %
Kill params
Merge params = %request.Data

// Discard debug trigger
Kill params("CSPDEBUG")

Set actionClass = ..FindActionClass(resourceName, action, "class", .resourceClass)
If (actionClass = "") {
Quit
Expand Down Expand Up @@ -780,6 +783,9 @@ ClassMethod DispatchInstanceAction(resourceName As %String, id As %String, actio
Kill params
Merge params = %request.Data

// Discard debug trigger
Kill params("CSPDEBUG")

Set actionClass = ..FindActionClass(resourceName, action, "instance", .resourceClass)
If (actionClass = "") {
Quit
Expand Down
5 changes: 5 additions & 0 deletions cls/_pkg/isc/rest/queryGenerator.cls
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ ClassMethod BuildQuery(tableName As %String, columns As %DynamicObject, index As
Set propName = $Order(params(""))
While (propName '= "") {
Set param = params(propName, 1)
// ignore debug signal
If (propName = "CSPDEBUG") {
Set propName = $Order(params(propName))
Continue
}
// if the property is $orderBy, then we store the order by string
// for appending at the end of the where clause building
If (propName = "$orderBy") {
Expand Down