code4romania / code4romania/paul

403 Forbidden when using "Update Data" function

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
Python
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Cannot proceed with import process when using "Update Data" functionality.
This endpoint fails with 403 Forbidden and an error is displayed in the UI: `/tables/35/csv-manual-import/`

**To Reproduce**
Steps to reproduce the behavior:
1. Login with user or admin user (please check my test users below if it's a role issue)
2. Ensure a table exists or create a new one
3. Click "Update Data" in left menu ("Actualizare date")
4. Select your table from step 2, upload a CSV, click Continue
5. Configure column correspondence ("Selectează corespondența între coloane")
6. Click "Continue"

**Expected behavior**
CSV file is imported and a status with succesful and error rows is displayed.

**Screenshots**
![Screenshot 2023-11-25 at 15 32 15](https://github.com/code4romania/paul/assets/516929/126dfccd-cfe3-4691-9def-b4f6b47246a8)

**Desktop (please complete the following information):**
- OS: [macOS]
- Browser [chrome]
- Version [119]

**Additional context**
Tested with users:
- nicolae.stihhi+user@hd56.example.com (user)
- nicolae.stihhi@hd56.example.com (admin)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.