Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ean Schuessler
/
mo-mcp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8d5420e0
authored
2025-11-19 23:33:24 -0600
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix ResourcesRead service by removing invalid artifactHit references
1 parent
6e68f0f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
service/McpServices.xml
service/McpServices.xml
View file @
8d5420e
...
...
@@ -716,33 +716,8 @@
result = [contents: contents]
// Update audit record
artifactHit.runningTimeMillis = executionTime
artifactHit.wasError = "N"
artifactHit.outputSize = new JsonBuilder(result).toString().length()
ec.artifactExecution.disableAuthz()
try {
artifactHit.update()
} finally {
ec.artifactExecution.enableAuthz()
}
} catch (Exception e) {
def executionTime = (System.currentTimeMillis() - startTime) / 1000.0
// Update audit record with error
artifactHit.runningTimeMillis = executionTime
artifactHit.wasError = "Y"
artifactHit.errorMessage = e.message
ec.artifactExecution.disableAuthz()
try {
artifactHit.update()
} finally {
ec.artifactExecution.enableAuthz()
}
throw new Exception("Error reading resource ${uri}: ${e.message}")
}
]]>
</script>
...
...
Please
register
or
sign in
to post a comment