[
https://issues.apache.org/jira/browse/METRON-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16318800#comment-16318800
]
ASF GitHub Bot commented on METRON-1282:
----------------------------------------
Github user merrimanr commented on the issue:
https://github.com/apache/metron/pull/891
@MohanDV this is a good start and will be a nice feature to have. I have a
couple suggestions.
First, can we move this to it's own function/endpoint? I think this would
be useful for assigning permissions to existing topics as well.
Second, I think we need some kind of check that Kerberos is enabled before
we try to permission a topic for a user. This would be similar to what's done
in the
[KafkaConfig](https://github.com/apache/metron/blob/master/metron-interface/metron-rest/src/main/java/org/apache/metron/rest/config/KafkaConfig.java)
class on line 111.
> creating a new topic using the rest end point breaks the list topic API
> -----------------------------------------------------------------------
>
> Key: METRON-1282
> URL: https://issues.apache.org/jira/browse/METRON-1282
> Project: Metron
> Issue Type: Bug
> Reporter: Mohan
> Assignee: Mohan
>
> I created a topic "newtopic" using rest endpoint "/api/v1/kafka/topic". When
> I try to list all the topics using " /api/v1/kafka/topic" , I get below error
> {code:java}
> {
> "timestamp": "2017-10-25 17:33:32",
> "status": 500,
> "error": "Internal Server Error",
> "exception": "org.apache.kafka.common.errors.TopicAuthorizationException",
> "message": "Not authorized to access topics: [newtopic]",
> "path": "/api/v1/kafka/topic"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)