airbytehq / airbytehq/airbyte

UI Incorrectly Escaping Tab Symbol in Delimiter Field for Source S3

Ouverte
#31,018 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
area/frontend team/triage
Langage dominant
Python
Étoiles
22.1k
Forks
5.4k
Merge moyen
5 h
PR mergées (30 j)
671

Description

### Topic

UI Incorrectly Escaping Tab Symbol in Delimiter Field

### Revelant information

When inputting the tab character as a delimiter in the UI, it is being incorrectly escaped with an additional backslash, resulting in "\\\t" instead of the expected "\t". This causes an error when the system tries to process the delimiter.

**Error Message:**

```
streams -> 0 -> format -> delimiter
delimiter should only be one character (type=value_error)
```
**Steps to Reproduce:**

1. Navigate to the section where the delimiter can be set.
2. Input the tab character as the delimiter.
3. Observe that the system processes it as "\\\t" instead of "\t".
4. The above error message is displayed.

**Expected Behavior:**
The tab character should be recognized as "\t" without any additional escape characters.

**Actual Behavior:**
The system is adding an additional escape character, resulting in "\\\t".

**Screenshots:**
![Screenshot from 2023-10-03 16-11-12](https://github.com/airbytehq/airbyte/assets/35109939/0c2efa48-d785-4d91-a468-16dca85d13f6)
![Screenshot from 2023-10-03 16-10-58](https://github.com/airbytehq/airbyte/assets/35109939/17b77aaf-537f-499f-bc11-2bd5f68e3d9f)
**Comment**: The modified delimiter is visible in the second screenshot.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.