`Programming Tasks`: Malformed input or input contains unmappable characters
See original GitHub issueDescribe the bug
Artemis cannot load Tasks from GitLab if the Path contains characters like: äöü.
GitLab contains:
And Artemis encounters an internal server error while loading the repository:
Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /opt/Artemis/data/repos-download/1638521186302/PROGRAMMING2122SHEET2TASKA/programming2122sheet2taska-XYZABC/._Übungsblatt_02.iml8367470496992632905.tmp
at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:145)
at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:69)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:276)
at java.base/java.io.File.toPath(File.java:2353)
at org.eclipse.jgit.util.FileUtils.isFile(FileUtils.java:802)
at org.eclipse.jgit.util.FileUtils.canExecute(FileUtils.java:831)
at org.eclipse.jgit.util.FS_POSIX.canExecute(FS_POSIX.java:205)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1506)
at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:563)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:467)
at org.eclipse.jgit.api.CloneCommand.checkout(CloneCommand.java:385)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:212)
at de.tum.in.www1.artemis.service.connectors.GitService.getOrCheckoutRepository(GitService.java:444)
To Reproduce
- Create a Programming Task
- Create a commit with a file name that contains ÄÖÜ
- Try to open the Repo in Artemis
Expected behavior
The Repository shall be displayed / no error is expected. Or at least a hint in the Artemis Frontend that the user shall edit their latest Git commit that it might be loadable.
Screenshots
No response
What browsers are you seeing the problem on?
Firefox
Additional context
No response
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
linux - java.nio.file.InvalidPathException: Malformed input or ...
nio. file. InvalidPathException: Malformed input or input contains unmappable characters when using national characters - Stack Overflow. Stack ...
Read more >"Upload failed Malformed input or input contains unmappable ...
Solution : Task which has Anaplan Connector used fails with Malformed input or input contains unmappable characters.. Results 1-3 of 3.
Read more >Malformed input or input contains unmappable characters
Malformed input or input contains unmappable characters. Problem. Errors/failures in the Git Integration for Jira application indexing. Diagnosis.
Read more >java.nio.file.InvalidPathException: Malformed input or ... - GitHub
java.nio.file.InvalidPathException : Malformed input or input contains unmappable characters inside docker #377.
Read more >Malformed input or input contains unmappable characters
Why do unicode characters not work? On some machines the locale is not set up. You'll need to tell Java what charset filenames...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great that you could resolve it. Could you add a hint to the docker file in a PR? Or even better: could we integrate the correct locale settings into the dockerfile? Maybe a custom built docker image?
Thanks for the hint @krusche . The locale was the problem. As mentioned above, this could be added to your Dockerfiles & Documentation 😃
https://github.com/kit-sdq/Artemis4Docker/commit/d77ca6f91fab9266ba45c86941b0cbca7b68eb79