question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Programming Tasks`: Malformed input or input contains unmappable characters

See original GitHub issue

Describe the bug

Artemis cannot load Tasks from GitLab if the Path contains characters like: äöü.

GitLab contains: image

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

  1. Create a Programming Task
  2. Create a commit with a file name that contains ÄÖÜ
  3. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kruschecommented, Dec 3, 2021

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?

0reactions
dfuchsscommented, Dec 3, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found