Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create topic filter in "Read-only mode" #286

Closed
4 tasks done
andreika63 opened this issue Apr 11, 2024 · 4 comments
Closed
4 tasks done

Can't create topic filter in "Read-only mode" #286

andreika63 opened this issue Apr 11, 2024 · 4 comments
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working

Comments

@andreika63
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

  1. add cluster with Read-only mode checkbox selected
  2. add topic filter like record.value.device.id == 137

Request URL: http://localhost:8081/api/clusters/prod/topics/resend-tasks/smartfilters
Request Method: POST
Status Code: 405 Method Not Allowed

request body:
{"filterCode":"record.value.device.id == 137"}

response body:
{"code":4003,"message":"This cluster is in read-only mode.","timestamp":1712837325324,"requestId":"3e10c336-125","fieldsErrors":null,"stackTrace":"io.kafbat.ui.exception.ReadOnlyModeException: This cluster is in read-only mode.
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55)
Suppressed: The stacktrace has been enhanced by Reactor, refer to additional information below:
Error has been observed at the following site(s):
*__checkpoint ⇢ io.kafbat.ui.config.ReadOnlyModeFilter [DefaultWebFilterChain]
*__checkpoint ⇢ AuthorizationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ExceptionTranslationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ LogoutWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ServerRequestCacheWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ReactorContextWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HttpHeaderWriterWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.web.filter.reactive.ServerHttpObservationFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/api/clusters/prod/topics/resend-tasks/smartfilters" [ExceptionHandlingWebHandler]
Original Stack Trace:
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55)
blah blah blah...
at java.base/java.lang.Thread.run(Thread.java:840)
"}

Expected behavior

I can see filtered topic just in front of me

Your installation details

docker image
kafbat/kafka-ui:latest
7d264e4a5ec4

docker run --hostname=650185f7db03 --user=kafkaui --mac-address=xxxxxx --env=DYNAMIC_CONFIG_ENABLED=true --env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=LANG=en_US.UTF-8 --env=LANGUAGE=en_US:en --env=LC_ALL=en_US.UTF-8 --env=TZ=Etc/UTC --env=JAVA_HOME=/usr/lib/jvm/zulu17 --env=JAVA_OPTS= -p 8081:8080 --restart=no --runtime=runc -d kafbat/kafka-ui:latest

2956664
v1.0.0

Steps to reproduce

  1. add cluster with Read-only mode checkbox selected
  2. add topic filter like record.value.device.id == 137

Screenshots

No response

Logs

No response

Additional context

No response

@andreika63 andreika63 added status/triage Issues pending maintainers triage type/bug Something isn't working labels Apr 11, 2024
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Apr 11, 2024
Copy link

Hi andreika63! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues.
Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

@andreika63
Copy link
Author

Looks like it's already been fixed
#277

@andreika63
Copy link
Author

Anyway, how to get a new docker image?

@Haarolean
Copy link
Member

@andreika63 you could replace image: ghcr.io/kafbat/kafka-ui:latest with image: ghcr.io/kafbat/kafka-ui:master

@Haarolean Haarolean closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants