You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/11/25 12:02:53 UTC

[GitHub] [pulsar] yanshuchong edited a comment on issue #8700: Unauthorized Error when I use PulsarAdmin API to query another host's ownedNamespaces

yanshuchong edited a comment on issue #8700:
URL: https://github.com/apache/pulsar/issues/8700#issuecomment-733665449


   another api  adminClient.topics().getSubscriptions(topic) have same problem  with package 
   
   Server 1 :
   ```
   GET /admin/v2/persistent/www/mynamespace/wxt.mq1-partition-1/subscriptions HTTP/1.1
   Accept: application/json
   SASL-Type: Kerberos
   SaslAuthRoleToken: u=client@MY.REALM&i=6&e=1606309235270&s=eF1GLXyx4QL4+zZsYJTygDVnagBgDDnf016sR5TuCNSHfFmM8bTsNeDOT4hzkG+8wFLm1eKkAm89GEdG3Pq0Pg==
   State: Done
   host: host-10-33-50-71:8080
   user-agent: Pulsar-Java-v2.6.1
   >t<,
   HTTP/1.1 307 Temporary Redirect
   Date: Wed, 25 Nov 2020 12:00:38 GMT
   Location: http://host-10-33-50-144:8080/admin/v2/persistent/www/mynamespace/wxt.mq1-partition-1/subscriptions?authoritative=false
   broker-address: host-10-33-50-71
   Content-Length: 0
   Server: Jetty(9.4.20.v20190813)
   
   ```
   
   
   Server 2
   ```
   tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
   GET /admin/v2/persistent/www/mynamespace/wxt.mq1-partition-1/subscriptions?authoritative=false HTTP/1.1
   Accept: application/json
   SASL-Type: Kerberos
   SaslAuthRoleToken: u=client@MY.REALM&i=6&e=1606309235270&s=eF1GLXyx4QL4+zZsYJTygDVnagBgDDnf016sR5TuCNSHfFmM8bTsNeDOT4hzkG+8wFLm1eKkAm89GEdG3Pq0Pg==
   State: Done
   host: host-10-33-50-144:8080
   user-agent: Pulsar-Java-v2.6.1
   HTTP/1.1 401 Authentication required
   Date: Wed, 25 Nov 2020 12:00:38 GMT
   Cache-Control: must-revalidate,no-cache,no-store
   Content-Length: 0
   
   ```
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org