Trouble uploading datasets to the test server
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
I have tried with the API, as well as with through the website.
When trying to upload a dataset to the test server, I encounter the following error:
A PHP Error was encountered
Severity: Warning
Message: simplexml_load_string(): Entity: line 70: parser error : Extra content at the end of the document
Filename: new/post.php
Line Number: 155
Backtrace:
File: /var/www/openml/OpenML/openml_OS/views/pages/frontend/new/post.php
Line: 155
Function: simplexml_load_string
File: /var/www/openml/OpenML/openml_OS/helpers/cms_helper.php
Line: 19
Function: view
File: /var/www/openml/OpenML/openml_OS/controllers/Frontend.php
Line: 89
Function: loadpage
File: /var/www/openml/OpenML/index.php
Line: 334
Function: require_once
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at openml_OS/views/pages/frontend/new/post.php line 155, where simplexml_load_string reports the parsing failure, then trace the upload path through openml_OS/helpers/cms_helper.php and openml_OS/controllers/Frontend.php. Reproduce the dataset upload through the API or website and identify why extra XML content reaches the parser. Done means valid dataset uploads no longer produce this warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100