feedback-to-code/mozzarella huggingface dataset:
Repository: provectus/kafka-ui
Issue: Make Submit button inactive when required fields aren't filled
Labels: type/bug
good first issue
scope/frontend
status/accepted
status/confirmed

**Describe the bug**
Submit button is inactive by default in create forms, it should stay inactive also in case of once pressing the input fields and letting it empty

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**
Steps to reproduce the behavior:

1. Navigate to schema registry 
2. Create schema
3. Make sure submit button is inactive
4. Click into required input field
5. Make sure submit button became active
6. Click out of the field

**Expected behavior**
Submit button should stay inactive if required data is missing from the forms: _**Create new Topic, Produce Message, Create new schema, Create Connector**_


**Screenshots**
![inactive submit](https://user-images.githubusercontent.com/104780608/170481725-0937c7ee-9711-4a14-82ae-00945fe626a0.png)






Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/components/Schemas/New/New.tsx b/kafka-ui-react-app/src/components/Schemas/New/New.tsx
index 1aa843d6b59..e1474c15835 100644
--- a/kafka-ui-react-app/src/components/Schemas/New/New.tsx
+++ b/kafka-ui-react-app/src/components/Schemas/New/New.tsx
@@ -32,7 +32,12 @@ const New: React.FC = () => {
   const { clusterName } = useAppParams<ClusterNameRoute>();
   const navigate = useNavigate();
   const dispatch = useAppDispatch();
-  const methods = useForm<NewSchemaSubjectRaw>({ mode: 'onChange' });
+  const methods = useForm<NewSchemaSubjectRaw>({
+    mode: 'onChange',
+    defaultValues: {
+      schemaType: SchemaType.AVRO,
+    },
+  });
   const {
     register,
     handleSubmit,
diff --git a/kafka-ui-react-app/src/components/Topics/List/ActionsCell/ActionsCell.tsx b/kafka-ui-react-app/src/components/Topics/List/ActionsCell/ActionsCell.tsx
index 617dc8f4928..2ab2bb7a6dd 100644
--- a/kafka-ui-react-app/src/components/Topics/List/ActionsCell/ActionsCell.tsx
+++ b/kafka-ui-react-app/src/components/Topics/List/ActionsCell/ActionsCell.tsx
@@ -1,10 +1,10 @@
 import React from 'react';
-import { useDispatch } from 'react-redux';
 import {
   CleanUpPolicy,
   SortOrder,
   TopicColumnsToSort,
 } from 'generated-sources';
+import { useAppDispatch } from 'lib/hooks/redux';
 import ConfirmationModal from 'components/common/ConfirmationModal/ConfirmationModal';
 import DropdownItem from 'components/common/Dropdown/DropdownItem';
 import { TableCellProps } from 'components/common/SmartTable/TableColumn';
@@ -45,7 +45,7 @@ const ActionsCell: React.FC<
 }) => {
   const { isReadOnly, isTopicDeletionAllowed } =
     React.useContext(ClusterContext);
-  const dispatch = useDispatch();
+  const dispatch = useAppDispatch();
   const { clusterName } = useAppParams<ClusterNameRoute>();
 
   const {


Test patch:
Repository: provectus/kafka-ui
Issue: Unnecessary line within KSQL DB / query
Labels: good first issue
scope/frontend
status/accepted
type/chore

**Describe the bug**
There is an Unnecessary line within KSQL DB / query

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**
Steps to reproduce the behavior:

1. Navigate to KSQL DB
2. Press 'Execute KSQL Request'

**Expected behavior**
The line is not necessary
Display: 3456 × 2234

**Screenshots**
<img width="1718" alt="line within ksql db" src="https://user-images.githubusercontent.com/104780608/173776414-5e0062e7-b804-4418-8ac2-66c1e414dcfa.png">



Issue comments:
Seems like that is a 80 symbols line delimiter. We can get rid of it.

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts b/kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts
index 1f5dcde061e..a8fa1cf7afa 100644
--- a/kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts
+++ b/kafka-ui-react-app/src/components/KsqlDb/Query/QueryForm/QueryForm.styled.ts
@@ -65,11 +65,13 @@ export const Fieldset = styled.fieldset`
 
 export const SQLEditor = styled(BaseSQLEditor)(
   ({ readOnly, theme }) =>
-    readOnly &&
     css`
-      background: ${theme.ksqlDb.query.editor.readonly.background};
+      background: ${readOnly && theme.ksqlDb.query.editor.readonly.background};
       .ace-cursor {
-        ${theme.ksqlDb.query.editor.readonly.cursor}
+        ${readOnly && theme.ksqlDb.query.editor.readonly.cursor}
+      }
+      .ace_print-margin {
+        display: none;
       }
     `
 );


Test patch:
Repository: provectus/kafka-ui
Issue: CVE fixes Q2.22
Labels: scope/backend
type/security
status/accepted

https://github.com/provectus/kafka-ui/runs/7354244079?check_suite_focus=true

+ upgrade alpine

Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-api/Dockerfile b/kafka-ui-api/Dockerfile
index 5488a771810..3990d488315 100644
--- a/kafka-ui-api/Dockerfile
+++ b/kafka-ui-api/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.15.0
+FROM alpine:3.16.1
 
 RUN apk add --no-cache openjdk13-jre libc6-compat gcompat \
 && addgroup -S kafkaui && adduser -S kafkaui -G kafkaui
diff --git a/pom.xml b/pom.xml
index 2f307fdb5ad..c06d556132d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
         <maven.compiler.target>13</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
-        <spring-boot.version>2.6.7</spring-boot.version>
+        <spring-boot.version>2.6.8</spring-boot.version>
         <jackson-databind-nullable.version>0.2.2</jackson-databind-nullable.version>
         <org.mapstruct.version>1.4.2.Final</org.mapstruct.version>
         <org.projectlombok.version>1.18.20</org.projectlombok.version>


Test patch:
Repository: provectus/kafka-ui
Issue: Update kafka-clients dependency to 3.1.0
Labels: good first issue
scope/backend
status/accepted
type/dependencies

current version is Kafka version: 2.8.0

there is now the version 3.1.0

Issue comments:
Hi, thanks for reaching out.

What's the point? Have you encountered any problem?
I'm thinking about multiple features

- Apache Kafka supports Java 17
- Ability to restart a connector's tasks on a single call in Kafka Connect
- Extend OffsetFetch requests to accept multiple group ids.

So, you're using the app as API?

1. Good point, noted.
2. I feel like we might've done it within #1444 already. Is that right?
3. Okay.


#1717 
the feature to restart all tasks is buggy in 3.1.0 , let's wait for 3.1.1

-> https://issues.apache.org/jira/browse/KAFKA-13719?src=confmacro

Pull request review comments:

Patch that resolved the issue:
diff --git a/pom.xml b/pom.xml
index e229c4959e2..2f307fdb5ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
         <org.projectlombok.version>1.18.20</org.projectlombok.version>
         <org.projectlombok.e2e-checks.version>1.18.20</org.projectlombok.e2e-checks.version>
         <git.revision>latest</git.revision>
-        <kafka-clients.version>2.8.0</kafka-clients.version>
+        <kafka-clients.version>3.2.0</kafka-clients.version>
         <node.version>v16.15.0</node.version>
         <pnpm.version>v7.4.0</pnpm.version>
         <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>


Test patch:
Repository: provectus/kafka-ui
Issue: Edit Topic: Validation message about "Replication Factor *" acceptable data
Labels: type/enhancement
good first issue
scope/backend
status/accepted

**Describe the bug**
Could be better to have validation message about accepted value for Replication Factor * field

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**
Steps to reproduce the behavior:

1. Navigate to Topics
2. Edit a Topic
3. Change the value of "Replication Factor * " field to be < = 0

**Expected behavior**
Could be better to have information: Value should be > = 1 in a message instead of "400 Bad Request
Fields validation failure" as it works for 

**Screenshots**
<img width="1718" alt="replication factor decrease" src="https://user-images.githubusercontent.com/104780608/177123772-0890654a-cc05-48b2-858e-2f555835a84f.png">




Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/TopicsService.java b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/TopicsService.java
index 75c32984617..46ecedd0b3d 100644
--- a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/TopicsService.java
+++ b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/TopicsService.java
@@ -259,6 +259,11 @@ public Mono<ReplicationFactorChangeResponseDTO> changeReplicationFactor(
                 new ValidationException(
                     String.format("Topic already has replicationFactor %s.", actual)));
           }
+          if (requested <= 0) {
+            return Mono.error(
+                new ValidationException(
+                    String.format("Requested replication factor (%s) should be greater or equal to 1.", requested)));
+          }
           if (requested > brokersCount) {
             return Mono.error(
                 new ValidationException(
diff --git a/kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml b/kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml
index 63f313e2ac1..77817f0edb9 100644
--- a/kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml
+++ b/kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml
@@ -592,6 +592,8 @@ paths:
                 $ref: '#/components/schemas/ReplicationFactorChangeResponse'
         404:
           description: Not found
+        400:
+          description: Bad Request
 
   /api/clusters/{clusterName}/topics/{topicName}/messages:
     get:
@@ -3052,7 +3054,6 @@ components:
       properties:
         totalReplicationFactor:
           type: integer
-          minimum: 1
       required:
         - totalReplicationFactor
 


Test patch:
Repository: provectus/kafka-ui
Issue: Keep the limitation error messages the same for all numerical fields in a Topic profile
Labels: type/bug
good first issue
scope/frontend
status/accepted
status/confirmed


**Describe the bug**
Could be better to have the same error message about limitation for all number fields within Topic profile

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**

1. Navigate to Topics
2. Add a topic
3. Fill not accepted value for "Number of partitions *", "Replication Factor *", "Min In Sync Replicas *" fields (value not in -2147483648 to 2147483647) 

**Expected behavior**
The error messages should be the same for all the fields and contain information about acceptable value

**Screenshots**

<img width="1680" alt="error message limitation 2" src="https://user-images.githubusercontent.com/104780608/178687024-f7f1bcd7-135b-4bfd-9b4f-4c45ce714b28.png">
<img width="1680" alt="error message limitati8on 1" src="https://user-images.githubusercontent.com/104780608/178687040-961ed960-cef5-4254-8c34-5a9369a697e7.png">


**Additional context**
<!--
(Add any other context about the problem here)
-->


Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/lib/yupExtended.ts b/kafka-ui-react-app/src/lib/yupExtended.ts
index 967bc0bbafe..ca51e662f15 100644
--- a/kafka-ui-react-app/src/lib/yupExtended.ts
+++ b/kafka-ui-react-app/src/lib/yupExtended.ts
@@ -55,16 +55,19 @@ export const topicFormValidationSchema = yup.object().shape({
   partitions: yup
     .number()
     .min(1)
+    .max(2147483647)
     .required()
     .typeError('Number of partitions is required and must be a number'),
   replicationFactor: yup
     .number()
     .min(1)
+    .max(2147483647)
     .required()
     .typeError('Replication factor is required and must be a number'),
   minInSyncReplicas: yup
     .number()
     .min(1)
+    .max(2147483647)
     .required()
     .typeError('Min in sync replicas is required and must be a number'),
   cleanupPolicy: yup.string().required(),


Test patch:
Repository: provectus/kafka-ui
Issue: Support JVM hot swap for `spring boot:run`
Labels: scope/backend
type/chore

Probably missing spring-devtools at least

Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-api/pom.xml b/kafka-ui-api/pom.xml
index a6ff458c6c5..53eb24731d7 100644
--- a/kafka-ui-api/pom.xml
+++ b/kafka-ui-api/pom.xml
@@ -217,6 +217,11 @@
             <artifactId>datasketches-java</artifactId>
             <version>${datasketches-java.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-devtools</artifactId>
+            <optional>true</optional>
+        </dependency>
 
     </dependencies>
 


Test patch:
Repository: provectus/kafka-ui
Issue: Do not display broker error as "none"
Labels: type/enhancement
good first issue
scope/backend
status/accepted

<img width="805" alt="image" src="https://user-images.githubusercontent.com/1494347/180452842-d2aa5e83-c2d4-4cad-a735-f87a2647fb46.png">


Issue comments:
Hey @Haarolean  , I'm interested in contributing to this issue, so before I start working on it, would you mind sparing your time explaining what the issue is about and pointing me to some resources to get started.
@9gl hey, the idea is to not display "none" if there's no error :) But it turns out it's a backend issue. If you wanna tackle any other frontend-related, you can check out [up for grabs](https://github.com/provectus/kafka-ui/projects/11#card-84437819) board.

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/mapper/DescribeLogDirsMapper.java b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/mapper/DescribeLogDirsMapper.java
index c7e66d0f455..3d84aa3ad90 100644
--- a/kafka-ui-api/src/main/java/com/provectus/kafka/ui/mapper/DescribeLogDirsMapper.java
+++ b/kafka-ui-api/src/main/java/com/provectus/kafka/ui/mapper/DescribeLogDirsMapper.java
@@ -8,6 +8,7 @@
 import java.util.Map;
 import java.util.stream.Collectors;
 import org.apache.kafka.common.TopicPartition;
+import org.apache.kafka.common.protocol.Errors;
 import org.apache.kafka.common.requests.DescribeLogDirsResponse;
 import org.springframework.stereotype.Component;
 
@@ -28,7 +29,7 @@ private BrokersLogdirsDTO toBrokerLogDirs(Integer broker, String dirName,
                                             DescribeLogDirsResponse.LogDirInfo logDirInfo) {
     BrokersLogdirsDTO result = new BrokersLogdirsDTO();
     result.setName(dirName);
-    if (logDirInfo.error != null) {
+    if (logDirInfo.error != null && logDirInfo.error != Errors.NONE) {
       result.setError(logDirInfo.error.message());
     }
     var topics = logDirInfo.replicaInfos.entrySet().stream()


Test patch:
Repository: provectus/kafka-ui
Issue: SECURE_BROKER guide link in README.md is not working
Labels: type/documentation

<!--

Don't forget to check for existing issues/discussions regarding your proposal. We might already have it.
https://github.com/provectus/kafka-ui/issues
https://github.com/provectus/kafka-ui/discussions

-->

**Describe the bug**
<!--(A clear and concise description of what the bug is.)-->
- SECURE_BROKER guide link in README.md is not working
  - https://github.com/provectus/kafka-ui/blob/master/README.md?plain=1#L77
- SECURE_BROKER file looks like moved to [this](https://github.com/provectus/kafka-ui/blob/master/documentation/guides/SECURE_BROKER.md) directory. 





Issue comments:
Hello there occidere! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

Pull request review comments:

Patch that resolved the issue:
diff --git a/README.md b/README.md
index d3efd90c543..38e885c1640 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ We have plenty of [docker-compose files](documentation/compose/DOCKER_COMPOSE.md
 - [SSO configuration](documentation/guides/SSO.md)
 - [AWS IAM configuration](documentation/guides/AWS_IAM.md)
 - [Docker-compose files](documentation/compose/DOCKER_COMPOSE.md)
-- [Connection to a secure broker](documentation/compose/SECURE_BROKER.md)
+- [Connection to a secure broker](documentation/guides/SECURE_BROKER.md)
 
 ### Configuration File
 Example of how to configure clusters in the [application-local.yml](https://github.com/provectus/kafka-ui/blob/master/kafka-ui-api/src/main/resources/application-local.yml) configuration file:


Test patch:
Repository: provectus/kafka-ui
Issue: FIx unstable e2e test
Labels: type/bug
scope/QA
status/accepted
status/confirmed

it shouldn't depend on number of topics in any case
![image](https://user-images.githubusercontent.com/1494347/182204890-692395bf-0101-4ff8-8cc9-622179f470e8.png)



Issue comments:

Pull request review comments:
and again, that's a wrong test

Patch that resolved the issue:
diff --git a/kafka-ui-e2e-checks/src/main/java/com/provectus/kafka/ui/pages/topic/TopicsList.java b/kafka-ui-e2e-checks/src/main/java/com/provectus/kafka/ui/pages/topic/TopicsList.java
index cfd120f3a01..5b816d05f5c 100644
--- a/kafka-ui-e2e-checks/src/main/java/com/provectus/kafka/ui/pages/topic/TopicsList.java
+++ b/kafka-ui-e2e-checks/src/main/java/com/provectus/kafka/ui/pages/topic/TopicsList.java
@@ -55,7 +55,7 @@ public TopicView openTopic(String topicName) {
     @SneakyThrows
     public TopicsList isTopicNotVisible(String topicName) {
         $$x("//table/tbody/tr/td[2]")
-                .shouldBe(CollectionCondition.sizeGreaterThanOrEqual(4))
+                .shouldBe(CollectionCondition.sizeGreaterThan(0))
                 .find(Condition.exactText(topicName))
                 .shouldBe(Condition.not(Condition.visible));
         return this;


Test patch:
diff --git a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
index a962b8ceabb..75e5cfa7224 100644
--- a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
+++ b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
@@ -64,7 +64,6 @@ public void createTopic() {
                 .goToSideMenu(SECOND_LOCAL, MainPage.SideMenuOptions.TOPICS)
                 .topicIsNotVisible(NEW_TOPIC);
     }
-
     @Disabled("Due to issue https://github.com/provectus/kafka-ui/issues/1500 ignore this test")
     @SneakyThrows
     @DisplayName("should update a topic")
@@ -104,7 +103,6 @@ public void updateTopic() {
     @AutomationStatus(status = Status.AUTOMATED)
     @CaseId(207)
     @Test
-    @Disabled // TODO: https://github.com/provectus/kafka-ui/issues/2373
     public void deleteTopic() {
         pages.openTopicsList(SECOND_LOCAL)
                 .isOnPage()
Repository: provectus/kafka-ui
Issue: Typo within Topic's statistics
Labels: scope/frontend
status/accepted
type/chore


**Describe the bug**
The word "unique" is written wrong within Topic's statistics page

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**
Steps to reproduce the behavior:

1. Navigate to Topics Statistics page
2. Start Analysis
3. Check the "Messages" part

**Expected behavior**
The "Unique keys" and "Unique values" should be displayed

**Screenshots**
<img width="1726" alt="unique" src="https://user-images.githubusercontent.com/104780608/183740313-a15f00a4-3a96-4645-abe7-2e929c18dc26.png">





Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/components/Topics/Topic/Details/Statistics/Indicators/Total.tsx b/kafka-ui-react-app/src/components/Topics/Topic/Details/Statistics/Indicators/Total.tsx
index dec863c0005..f2aa53141e8 100644
--- a/kafka-ui-react-app/src/components/Topics/Topic/Details/Statistics/Indicators/Total.tsx
+++ b/kafka-ui-react-app/src/components/Topics/Topic/Details/Statistics/Indicators/Total.tsx
@@ -24,14 +24,14 @@ const Total: React.FC<TopicAnalysisStats> = ({
     </Metrics.Indicator>
     <Metrics.Indicator label="Null keys">{nullKeys}</Metrics.Indicator>
     <Metrics.Indicator
-      label="Uniq keys"
+      label="Unique keys"
       title="Approximate number of unique keys"
     >
       {approxUniqKeys}
     </Metrics.Indicator>
     <Metrics.Indicator label="Null values">{nullValues}</Metrics.Indicator>
     <Metrics.Indicator
-      label="Uniq values"
+      label="Unique values"
       title="Approximate number of unique values"
     >
       {approxUniqValues}


Test patch:
Repository: provectus/kafka-ui
Issue: In case of using "," symbol system doesn't give the validation message for Topic name field
Labels: type/bug
good first issue
scope/frontend
status/accepted
status/confirmed

**Describe the bug**
In case of using "," symbol system doesn't give the validation message for Topic name field

**Set up**
https://www.kafka-ui.provectus.io/


**Steps to Reproduce**
Steps to reproduce the behavior:

1. Navigate to Topics
2. Add a Topic
3. Input the ";" symbol into Topic name field
4. Make sure validation message appears "Only alphanumeric, _, -, and . allowed"
5. Input the "," symbol into Topic name

**Expected behavior**
Validation message about not allowed symbol is not displayed

**Screenshots**
<img width="1718" alt="topic name" src="https://user-images.githubusercontent.com/104780608/175309599-2fd9636e-c005-472e-9c8b-6ffa91398276.png">





Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/kafka-ui-react-app/src/components/Topics/New/__test__/New.spec.tsx b/kafka-ui-react-app/src/components/Topics/New/__test__/New.spec.tsx
index a15ef31f680..0e01da66cb6 100644
--- a/kafka-ui-react-app/src/components/Topics/New/__test__/New.spec.tsx
+++ b/kafka-ui-react-app/src/components/Topics/New/__test__/New.spec.tsx
@@ -77,6 +77,18 @@ describe('New', () => {
     expect(mockNavigate).not.toHaveBeenCalled();
   });
 
+  it('validates form invalid name', async () => {
+    await act(() => renderComponent(clusterTopicNewPath(clusterName)));
+    await waitFor(() => {
+      userEvent.type(screen.getByPlaceholderText('Topic Name'), 'Invalid,Name');
+    });
+    await waitFor(() => {
+      expect(
+        screen.getByText('Only alphanumeric, _, -, and . allowed')
+      ).toBeInTheDocument();
+    });
+  });
+
   it('submits valid form', async () => {
     await act(() => renderComponent(clusterTopicNewPath(clusterName)));
     await act(() => {
diff --git a/kafka-ui-react-app/src/lib/constants.ts b/kafka-ui-react-app/src/lib/constants.ts
index 0be9810babe..5626c06ee34 100644
--- a/kafka-ui-react-app/src/lib/constants.ts
+++ b/kafka-ui-react-app/src/lib/constants.ts
@@ -15,7 +15,7 @@ export const BASE_PARAMS: ConfigurationParameters = {
   },
 };
 
-export const TOPIC_NAME_VALIDATION_PATTERN = /^[.,A-Za-z0-9_-]+$/;
+export const TOPIC_NAME_VALIDATION_PATTERN = /^[a-zA-Z0-9._-]+$/;
 export const SCHEMA_NAME_VALIDATION_PATTERN = /^[.,A-Za-z0-9_/-]+$/;
 
 export const TOPIC_CUSTOM_PARAMS_PREFIX = 'customParams';
diff --git a/kafka-ui-react-app/src/lib/yupExtended.ts b/kafka-ui-react-app/src/lib/yupExtended.ts
index ca51e662f15..d9c476aa76a 100644
--- a/kafka-ui-react-app/src/lib/yupExtended.ts
+++ b/kafka-ui-react-app/src/lib/yupExtended.ts
@@ -47,6 +47,7 @@ export default yup;
 export const topicFormValidationSchema = yup.object().shape({
   name: yup
     .string()
+    .max(249)
     .required()
     .matches(
       TOPIC_NAME_VALIDATION_PATTERN,


Test patch: