Skip to content

Commit

Permalink
Change trackArtifactHit var in RestApi to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshp committed Jul 19, 2024
1 parent 3fe627e commit 63b5b68
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class RestApi {
PathNode parent
List<String> fullPathList = []
Set<String> pathParameters = new LinkedHashSet<String>()
String trackArtifactHit
Boolean trackArtifactHit

int childPaths = 0
int childMethods = 0
Expand All @@ -590,7 +590,7 @@ class RestApi {
fullPathList.add(isId ? "{${name}}".toString() : name)
if (isId) pathParameters.add(name)
requireAuthentication = node.attribute("require-authentication") ?: parent?.requireAuthentication ?: "true"
trackArtifactHit = node.attribute("track-artifact-hit") ?: parent?.trackArtifactHit ?: "false"
trackArtifactHit = node.attribute("track-artifact-hit") ?: parent?.trackArtifactHit ?: false

for (MNode childNode in node.children) {
if (childNode.name == "method") {
Expand Down Expand Up @@ -660,7 +660,7 @@ class RestApi {
loggedInAnonymous = ec.userFacade.loginAnonymousIfNoUser()
}

aei.setTrackArtifactHit("true".equals(trackArtifactHit))
aei.setTrackArtifactHit(trackArtifactHit)
aei.setAuthzReqdAndIsAccess(!loggedInAnonymous, true)

try {
Expand Down

0 comments on commit 63b5b68

Please sign in to comment.