You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ATLAS QA (JIRA)" <ji...@apache.org> on 2016/02/05 00:05:39 UTC

[jira] [Commented] (ATLAS-398) Delete trait that exists but not linked to entity results in "400 Bad request". It should result "404 not found"

    [ https://issues.apache.org/jira/browse/ATLAS-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15133272#comment-15133272 ] 

ATLAS QA commented on ATLAS-398:
--------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment
  http://issues.apache.org/jira/secure/attachment/12783909/Atlas-356-Atlas-398-V0.patch
  against master revision 21b403b.

    {color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/7//console

This message is automatically generated.

> Delete trait that exists but not linked to entity results in "400 Bad request". It should result "404 not found"
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-398
>                 URL: https://issues.apache.org/jira/browse/ATLAS-398
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Ayub Khan
>            Assignee: Naima Djouhri
>             Fix For: trunk
>
>         Attachments: Atlas-356-Atlas-398-V0.patch
>
>
> Delete trait that exists but not linked to entity results in "400 Bad request". It should result "404 not found"
> {noformat}
> curl -v -X DELETE http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities/c4d364e5-c5d0-4971-8b35-9a661128a5d9/traits/deleteTraitThatExistsButNotLinkedToEntitywzrfuznlno?user.name=apathan
> * About to connect() to os-r6-atlas-erie-tp-testing-2.novalocal port 21000 (#0)
> *   Trying 172.22.100.121... connected
> * Connected to os-r6-atlas-erie-tp-testing-2.novalocal (172.22.100.121) port 21000 (#0)
> > DELETE /api/atlas/entities/c4d364e5-c5d0-4971-8b35-9a661128a5d9/traits/deleteTraitThatExistsButNotLinkedToEntitywzrfuznlno?user.name=apathan HTTP/1.1
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: os-r6-atlas-erie-tp-testing-2.novalocal:21000
> > Accept: */*
> >
> < HTTP/1.1 400 Bad Request
> < Date: Thu, 17 Dec 2015 17:57:02 GMT
> < Content-Type: application/json; charset=UTF-8
> < Transfer-Encoding: chunked
> < Server: Jetty(9.2.12.v20150709)
> <
> {"error":"org.apache.atlas.typesystem.exception.EntityNotFoundException: Could not find trait=deleteTraitThatExistsButNotLinkedToEntitywzrfuznlno in the repository for entity: c4d364e5-c5d0-4971-8b35-9a661128a5d9","stackTrace":"org.apache.atlas.repository.RepositoryException: org.apache.atlas.typesystem.exception.EntityNotFoundException: Could not find trait=deleteTraitThatExistsButNotLinkedToEntitywzrfuznlno in the repository for entity: c4d364e5-c5d0-4971-8b35-9a661128a5d9\n\tat org.apache.atlas.repository.graph.GraphBackedMetadataRepository.deleteTrait(GraphBackedMetadataRepository.java:266)\n\tat org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:42)\n\tat org.apache.atlas.services.DefaultMetadataService.deleteTrait(DefaultMetadataService.java:607)\n\tat org.apache.atlas.web.resources.EntityResource.deleteTrait(EntityResource.java:523)\n\tat sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:497)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)\n\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)\n\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)\n\tat org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:67)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)\n\tat com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)\n\ta* Connection #0 to host os-r6-atlas-erie-tp-testing-2.novalocal left intact
> * Closing connection #0
> t org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: org.apache.atlas.typesystem.exception.EntityNotFoundException: Could not find trait=deleteTraitThatExistsButNotLinkedToEntitywzrfuznlno in the repository for entity: c4d364e5-c5d0-4971-8b35-9a661128a5d9\n\tat org.apache.atlas.repository.graph.GraphBackedMetadataRepository.deleteTrait(GraphBackedMetadataRepository.java:243)\n\t... 52 more\n"}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)