gforge-to-gitlab-scripts issueshttps://gitlab.inria.fr/sed-rennes/gforge-to-gitlab-scripts/-/issues2021-03-21T21:15:20+01:00https://gitlab.inria.fr/sed-rennes/gforge-to-gitlab-scripts/-/issues/2forge export fails when issue or message sender is "Nobody"2021-03-21T21:15:20+01:00Olivier Rochelforge export fails when issue or message sender is "Nobody"In some forge issues the sender is set to "Nobody", with no unix name, see, e.g:
https://gforge.inria.fr/tracker/index.php?func=detail&aid=1847&group_id=157&atid=709
CreateGitlabIssuesFromGforge.py fails at:
```python
issue['submitter_u...In some forge issues the sender is set to "Nobody", with no unix name, see, e.g:
https://gforge.inria.fr/tracker/index.php?func=detail&aid=1847&group_id=157&atid=709
CreateGitlabIssuesFromGforge.py fails at:
```python
issue['submitter_unixname'] = row3[0].find("./samp/a").text
```
(there's no ```<a>unixname</a>``` in that case, find() returns None)
Same problem with the messages:
```python
sender=pieces[0].find("./a").text
```
fails in ```get_all_messages_of_issue```.https://gitlab.inria.fr/sed-rennes/gforge-to-gitlab-scripts/-/issues/1Double-quote character from CSV is not de-duplicated2020-10-21T12:27:59+02:00LEFEVRE VincentDouble-quote character from CSV is not de-duplicatedThe script downloads a CSV from InriaForge, and in CSV, the double-quote character is used to delimit strings, thus is duplicated inside a string. But the script forgets to de-duplicate it in the output.
Example: https://gforge.inria.fr...The script downloads a CSV from InriaForge, and in CSV, the double-quote character is used to delimit strings, thus is duplicated inside a string. But the script forgets to de-duplicate it in the output.
Example: https://gforge.inria.fr/tracker/?func=detail&group_id=2065&atid=7442&aid=21648 containing the line
The cado-nfs-client.py script is "buggy" under the following condition:
in the description. In the CSV file, one gets:
"The cado-nfs-client.py script is ""buggy"" under the following condition:
followed by the other lines. One can see that the double-quote character has been doubled. And the converted https://gitlab.inria.fr/cado-nfs/cado-nfs/-/issues/21648 contains:
The cado-nfs-client.py script is ""buggy"" under the following condition:
where each double-quote character is still doubled, which is incorrect here.
Note: This can be a serious issue, as posted programs will probably be buggy. In a shell script, this may remain unnoticed and introduce a security bug because quote protection would be removed. For instance, see the difference between
echo "*"
and
echo ""*""