You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm experiencing issues with API when requesting project acl (maybe also with system acls, but api doesn't list any entry).
I first make this:
curl -H 'X-Rundeck-Auth-Token: token' http://myserver/api/17/project/DBAGEST/acl/
And i get the right list of the acl files that are inside /var/lib/rundeck/projects/DBAGEST/acls/: {"path":"","type":"directory","href":"http://myserver/api/17/project/DBAGEST/acl/","resources":[{"path":"DBAGEST.aclpolicy","type":"file","name":"DBAGEST.aclpolicy","href":"http://myserver/api/17/project/DBAGEST/acl/DBAGEST.aclpolicy"}]
I execute then: curl -H 'X-Rundeck-Auth-Token: token' http://myserver/api/17/project/DBAGEST/acl/DBAGEST.aclpolicy
And this is what i get:
`
<title>Rundeck - Error</title>
An Error Occurred
<div class="panel-body text-danger">
<b>No such property: mkp for class: rundeck.services.ApiService</b>
</div>
</div>
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#internalerror">
Error Details <i class="glyphicon glyphicon-chevron-right"></i>
</a>
</h4>
</div>
<div class="panel-collapse collapse collapse-expandable" id="internalerror">
<div class="panel panel-default">
<div class="panel-body">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div><b>Request:</b> /api/17/project/DBAGEST/acl/DBAGEST.aclpolicy
</div>
<strong>Message:</strong> No such property: mkp for class: rundeck.services.ApiService <br/>
<strong>Caused by:</strong> No such property: mkp for class: rundeck.services.ApiService <br/>
<strong>Class:</strong> ProjectController <br/>
<strong>At Line:</strong> [777] <br/>
<strong>Code Snippet:</strong><br/>
<div class="snippet">
</div>
</div>
<h3>Stack Trace</h3>
<pre>groovy.lang.MissingPropertyException: No such property: mkp for class: rundeck.services.ApiService
at rundeck.services.ApiService$_renderWrappedFileContents_closure10.doCall(ApiService.groovy:562)
at grails.web.JSONBuilder.handleClosureNode(JSONBuilder.groovy:139)
at grails.web.JSONBuilder.invokeMethod(JSONBuilder.groovy:95)
at rundeck.services.ApiService.renderWrappedFileContents(ApiService.groovy:561)
at rundeck.controllers.ProjectController$_apiProjectAclsGetResource_closure26_closure80_closure82.doCall(ProjectController.groovy:925)
at grails.web.JSONBuilder.buildRoot(JSONBuilder.groovy:48)
at grails.web.JSONBuilder.build(JSONBuilder.groovy:39)
at rundeck.controllers.ProjectController$_apiProjectAclsGetResource_closure26_closure80.doCall(ProjectController.groovy:924)
at rundeck.controllers.ProjectController.apiProjectAclsGetResource(ProjectController.groovy:922)
at rundeck.controllers.ProjectController.apiProjectAcls(ProjectController.groovy:777)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:539)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:910)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
at java.lang.Thread.run(Thread.java:745)
`
Instead if i specify also -H accept:application/json to curl, i get a json result with the content of the aclpolicy file. (thanks @gschueler for the hint)
Hello,
i'm experiencing issues with API when requesting project acl (maybe also with system acls, but api doesn't list any entry).
I first make this:
curl -H 'X-Rundeck-Auth-Token: token' http://myserver/api/17/project/DBAGEST/acl/
And i get the right list of the acl files that are inside /var/lib/rundeck/projects/DBAGEST/acls/:
{"path":"","type":"directory","href":"http://myserver/api/17/project/DBAGEST/acl/","resources":[{"path":"DBAGEST.aclpolicy","type":"file","name":"DBAGEST.aclpolicy","href":"http://myserver/api/17/project/DBAGEST/acl/DBAGEST.aclpolicy"}]
I execute then:
curl -H 'X-Rundeck-Auth-Token: token' http://myserver/api/17/project/DBAGEST/acl/DBAGEST.aclpolicy
And this is what i get:
`
<title>Rundeck - Error</title>An Error Occurred
Instead if i specify also -H accept:application/json to curl, i get a json result with the content of the aclpolicy file. (thanks @gschueler for the hint)
This is my setup:
[root@myserver acls]# rpm -q rundeck
rundeck-2.6.7-1.19.GA.noarch
[root@myserver acls]# rpm -q jdk
jdk-1.7.0_67-fcs.x86_64
The text was updated successfully, but these errors were encountered: