Comments (5)
Hey @davideicardi,
I tried to investigate this issue and following are my findings,
- For consumer group ID with HTML content is being rendered by UI, html tags can be seen.
- However going into consumer detail page it is failing due to
NoResourceFoundException
- Escaping HTML from groupId in topic response won't help as
spring.url
will again convert it as unescaped one. - It would be better to send it in post request rather then get, to solve this problem.
I started looking into the code recently, I could be wrong with my analysis. Feel free to correct me and guide for the same.
Looking forward to contribute more with this project. Let me know if any further investigation is required.
![Screenshot 2024-05-19 at 7 36 49 PM](https://private-user-images.githubusercontent.com/97438196/331878405-022eab49-80a5-4b00-ac2b-fc0508e98c4d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY2NTUxMTUsIm5iZiI6MTcxNjY1NDgxNSwicGF0aCI6Ii85NzQzODE5Ni8zMzE4Nzg0MDUtMDIyZWFiNDktODBhNS00YjAwLWFjMmItZmMwNTA4ZTk4YzRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI1VDE2MzMzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3NGQ4OTY5YWM5ZWY3OTBmNTQwZTRhMjQ4ZGI1MjZkM2M5Y2NmZmFhYTExZTI1YTFlNmU0NzcyMzYzYzFhZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EyFyouQ2jA1nb4TTrL0c8xVCSHSbm-1C3_uyD6aJX2Q)
![Screenshot 2024-05-19 at 7 54 05 PM](https://private-user-images.githubusercontent.com/97438196/331878393-c17a763a-0422-42f0-90fb-bd1e99ddf291.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY2NTUxMTUsIm5iZiI6MTcxNjY1NDgxNSwicGF0aCI6Ii85NzQzODE5Ni8zMzE4NzgzOTMtYzE3YTc2M2EtMDQyMi00MmYwLTkwZmItYmQxZTk5ZGRmMjkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI1VDE2MzMzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ZGM0Yzg0MzA4YzQ5YjZkYWZmNGUwODkyOGVhMDhiOWRiYmU0ZDRlOTU2NTJiMjFkMjMxYWVmYmE2ZjM0ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PVyt9MURaZrso_LR9229abJzDOMnd3VGFZAYEOT7HoY)
from kafdrop.
Thank you @aakashthakare!
Regarding the resource not found, it is a problem of the id pased in the wrong way? Or maybe some other server side problems?
from kafdrop.
Hello @davideicardi, thanks for the response. Yes, need to fix from server side. The URL consumer/my-second-consumer-group-<a>new</a>
failing to reach the controller, We need to HTML encode it in URL, while on the server side we need to HTML decode the consumer id.
from kafdrop.
What if you pass it as URL encoded? (not HTML encoded ...)
from kafdrop.
It will solve upto some extent, not completely.
For example, consumer group id is test-<a>it</a>
, if URL encoded will become test-%3Ca%3Eit%3C%2Fa%3E
, this we can do while returning the consumer group. However, it gets automatically decoded when clicked on consumer link consumer/test-%3Ca%3Eit%3C%2Fa%3E
, and we get A 404 error has occurred: No static resource consumer/test-<a>it</a>
.
One way is to do Bse64 encoding/decoding of the groupId, but need to see how we can decode it to display the readable consumer id. Check out this commit.
from kafdrop.
Related Issues (20)
- in KRaft mode, WARN: Broker may not be available HOT 2
- Unable to disable vulnerable TLS protocols TLSv1, TLSv1.0 HOT 2
- Please help create new release & image HOT 3
- Arm64 container images HOT 1
- Kafdrop 4 complains about missing key store password though keystore was not set HOT 7
- Kafdrop 4.0.0 Docker image doesn't start HOT 15
- Invalid value SASL_PLAINTEXT HOT 3
- StackOverflow exception HOT 3
- I can't connect Broker when i run by Docker on Mac M1 HOT 2
- Only one node in the cluster is available, but kafdrop shows all nodes are online HOT 2
- When running kafdrop in a separate container, I can't configure the kafka broker address. HOT 2
- IllegalFormatConversionException on Long Search Queries in Message Search HOT 2
- Is there any way to hide the messages from kafdrop as in PROD it is not suitable to show the messages of eventhub or kafka HOT 5
- I cannot view messages within the topics. (No messages found in partition 0 at offset 0)
- arm64 architecture HOT 4
- Does it support deployment with spring native ? HOT 3
- NPE HOT 3
- Disable Log-Spamming in Docker Compose
- Query: Do we have any near term Plan for AWS IAM authentication to control access HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafdrop.