IQSS / IQSS/dataverse

Updating ':ApplicationTermsOfUse' setting gets 'Warning: Couldn't read data from file "/tmp/termosusoIPB.html", this makes an Warning: empty POST'

Open
#9,430 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Installation Guide Help Wanted: Documentation Mentor: pdurbin Type: Bug User Role: Sysadmin
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

1- When I try to update ':ApplicationTermsOfUse' setting using the command 'sudo curl -X PUT -d @/tmp/termosusoIPB_copia.html http://localhost:8080/api/admin/settings/:ApplicationTermsOfUse' I get the following warning '
Warning: Couldn't read data from file "/tmp/termosusoIPB_copia.html", this makes an Warning: empty POST.' The 'Terms of use' field in the signup form gets blank.

2- Using the command 'file /tmp/termosusoIPB_copia.html' I get 'Non-ISO extended-ASCII text, with very long lines, with CRLF line terminators'.

3- Codifying the file to UTF-8-BOM and using the command 'file /tmp/termosusoIPB_copia.html' I get 'ISO- 8859 text'.

Initial problem solved. I attach the initial file to this issue.
termosusoIPB_copia.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the API endpoint shown in the curl command and reproduce the PUT request with the attached HTML file. Check how the request handles the file payload and encoding; done would mean the setting is updated without an empty POST warning and the signup form retains the terms text.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.