Cliffart44 / Cliffart44/Auto_hw_3.2
Пустое тело ответа сервера при API-запросе карт
- Dominant language
- Java
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### Шаги для воспроизведения
1. Загрузить [специальную сборку](https://github.com/Cliffart44/Auto_hw_3.2/raw/2ed81de0c34a6e019a8b4534690d69cdb7437a22/artifacts/app-deadline.jar) `app-deadline.jar`.
1. Запустить [`Docker`-контейнер](https://github.com/Cliffart44/Auto_hw_3.2/tree/2ed81de0c34a6e019a8b4534690d69cdb7437a22/Docker) с `БД`.
1. Запустить [`jar`-приложение](https://github.com/Cliffart44/Auto_hw_3.2/blob/2ed81de0c34a6e019a8b4534690d69cdb7437a22/java%20-jar.txt#L3).
2. Войти в [систему](http://localhost:9999/) с предоставленными тестовыми данными.
1. Запросить данные карт через `API`-запрос.
1. Наблюдать результат.
### Фактический результат
Сервер возвращает ответ `200`, тело содержит пустой массив.
### Ожидаемый результат
Сервер возвращает ответ `200`, тело содержит информацию по картам.
#### Скриншот

#### Тестовые данные
* [`Docker`-файлы](https://github.com/Cliffart44/Auto_hw_3.2/tree/2ed81de0c34a6e019a8b4534690d69cdb7437a22/Docker)
* Логин: `petya`
* Пароль: `123qwerty`
* Параметры `API`-запроса
```java
GET http://localhost:9999/api/cards
Content-Type: application/json
Authorization: Bearer :
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpbiI6InBldHlhIn0.TotWpKiZWvp_H67GvgakR-wdIfBVpLb5eqbb246_CKo
```
#### Окружение
* `Postman v7.36.1`
* `OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11)`
* `OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9+11, mixed mode)`
* `Docker Desctop 3.0.0 (50684)`
* `Docker-compose version 1.27.4, build 40524192`
* `Windows 10` Домашняя для одного языка `x64`
* Версия `20H2`
* Сборка ОС `19042.685`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the Docker database and the referenced app-deadline.jar, then authenticate and reproduce the GET /api/cards request with the provided test data. Trace the API response back through the application and database to find why the cards are not returned. Done means the endpoint still returns 200 with the expected card information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- api, backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100