# InvalidPathException

**URL:** <https://community.cloudogu.com/t/invalidpathexception/843>\
**Category:** SCM-Manager Bug Reports\
**Created:** [August 14, 2022, 10:36am UTC](https://community.cloudogu.com/t/invalidpathexception/843 "2022-08-14T10:36:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ertank](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/ertank/32/1053_2.png) [@ertank](https://community.cloudogu.com/u/ertank)\
**Post date:** [August 14, 2022, 10:36am UTC](https://community.cloudogu.com/t/invalidpathexception/843/1 "2022-08-14T10:36:43Z")

</div>

Hello,

I am using SCM Manager 2.38.1 version. I only have subversion enabled in my system.

I just finished importing my dump files in SCM Manager and I saw following errors logged.

```auto
2022-08-14 12:26:07.872 [CentralWorkQueue-3] [] ERROR sonia.scm.work.UnitOfWork - task sonia.scm.search.LuceneSimpleIndexTask@3093b9ff failed after 27.71 s
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: trunk/D?k?mantasyon/Sat?? sonras? Operasyon.doc
        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:279)
        at java.base/java.nio.file.Path.of(Path.java:147)
        at java.base/java.nio.file.Paths.get(Paths.java:69)
        at com.cloudogu.spotter.internal.FilenameBasedLanguageDetectionStrategy.detect(FilenameBasedLanguageDetectionStrategy.java:40)
        at com.cloudogu.spotter.internal.BestEffortMatchingStrategy.detect(BestEffortMatchingStrategy.java:54)
        at com.cloudogu.spotter.ContentTypeDetector.detect(ContentTypeDetector.java:71)
        at sonia.scm.io.DefaultContentTypeResolver.lambda$resolve$1(DefaultContentTypeResolver.java:70)
        at java.base/java.util.Optional.orElseGet(Optional.java:369)
        at sonia.scm.io.DefaultContentTypeResolver.resolve(DefaultContentTypeResolver.java:70)
        at sonia.scm.io.DefaultContentTypeResolver.resolve(DefaultContentTypeResolver.java:37)
        at com.cloudogu.scm.search.FileContentFactory.create(FileContentFactory.java:48)
        at com.cloudogu.scm.search.Indexer.store(Indexer.java:64)
        at com.cloudogu.scm.search.IndexSyncWorker.updateIndex(IndexSyncWorker.java:99)
        at com.cloudogu.scm.search.IndexSyncWorker.reIndex(IndexSyncWorker.java:112)
        at com.cloudogu.scm.search.IndexSyncWorker.ensureIndexIsUpToDate(IndexSyncWorker.java:72)
        at com.cloudogu.scm.search.IndexSyncer.ensureIndexIsUpToDate(IndexSyncer.java:79)
        at com.cloudogu.scm.search.IndexSyncer.ensureIndexIsUpToDate(IndexSyncer.java:59)
        at com.cloudogu.scm.search.IndexerTask.update(IndexerTask.java:57)
        at sonia.scm.search.LuceneIndexTask.run(LuceneIndexTask.java:68)
        at sonia.scm.work.UnitOfWork.run(UnitOfWork.java:120)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

```

These directories/files have Turkish specific national characters in their names.

I located the repository in filesystem but I cannot find such files there. They must be inside subversion format somewhere.

Browser can display folders and use them (go inside and display files).  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/1X/8d43d907bcca70fb42fcbb529af476b1e39f3339.png)

Files however, they are displayed, but cannot be downloaded

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/1X/5911a84e429ebfbd93942714e9b084048c64339d.png)

There is no problem fetching files over subversion (TortoiseSVN). Directory/Filename is correct. Data in files is correct.

Problem only related to SCM Manager interface as far as I can tell.

I can provide a sample subversion dump having just a few sample directory and files if needed.

Thanks & Regards,  
Ertan

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [August 15, 2022, 6:48am UTC](https://community.cloudogu.com/t/invalidpathexception/843/2 "2022-08-15T06:48:09Z")

</div>

Hey @ertank,

thanks your your bug report. We will try to reproduce this error and find a solution for the character issues. Providing us a example repo would be helpful.

Regards, Eduard

---

<div class="post-metadata">

**Author:** ![ertank](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/ertank/32/1053_2.png) [@ertank](https://community.cloudogu.com/u/ertank)\
**Post date:** [August 15, 2022, 7:57am UTC](https://community.cloudogu.com/t/invalidpathexception/843/3 "2022-08-15T07:57:39Z")

</div>

Hi @eheimbuch,

I prepared a sample subversion repo. There is no sensitive information in it.  
Can be downloaded from [here](https://drive.google.com/file/d/1cSr8pWeQqu3Khd0xQVh8TWgg2YP9X_iq/view?usp=sharing)

Thanks & Regards,  
Ertan

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [August 16, 2022, 11:26am UTC](https://community.cloudogu.com/t/invalidpathexception/843/4 "2022-08-16T11:26:45Z")

</div>

I tried to reproduce your error using your example repository. Until now it works as expected for me…

 ![Screenshot from 2022-08-16 13-13-12](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/1X/63d179b7948cffe151680c4cd08fb844d05e230f.png)

 ![Screenshot from 2022-08-16 13-16-39](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/1X/91d871c076271b9925490661ab9b2f76c52f9f0f.png)

What is the default encoding on your machine?

---

<div class="post-metadata">

**Author:** ![ertank](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/ertank/32/1053_2.png) [@ertank](https://community.cloudogu.com/u/ertank)\
**Post date:** [August 16, 2022, 1:30pm UTC](https://community.cloudogu.com/t/invalidpathexception/843/5 "2022-08-16T13:30:05Z")

</div>

Hi,  
Client machine where I use SCM in browser run Windows 11 with English default encoding.  
Server machine which run SCM Manager has below settings

```auto
root@omv:~# locale
LANG=
LANGUAGE=en_US:en
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
root@omv:~#

```

Thanks & Regards,  
Ertan

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [August 17, 2022, 4:41pm UTC](https://community.cloudogu.com/t/invalidpathexception/843/6 "2022-08-17T16:41:45Z")

</div>

Hey Ertan,

could you please try to change your encoding like this:

```auto
LANG=en_US.UTF-8

```

---

<div class="post-metadata">

**Author:** ![ertank](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/ertank/32/1053_2.png) [@ertank](https://community.cloudogu.com/u/ertank)\
**Post date:** [August 17, 2022, 6:06pm UTC](https://community.cloudogu.com/t/invalidpathexception/843/7 "2022-08-17T18:06:14Z")

</div>

I could change encoding in this system. There was no problems modifying it in terms of software installed and running.

Doing this and a reboot solves the problem.

Thank you.

---

<div class="post-metadata">

**Author:** ![christoph.loose](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/christoph.loose/32/1400_2.png) [@christoph.loose](https://community.cloudogu.com/u/christoph.loose)\
**Post date:** [October 5, 2022, 6:40am UTC](https://community.cloudogu.com/t/invalidpathexception/843/8 "2022-10-05T06:40:52Z")

</div>

I am closing this topic as there has been no activity for more than 30 days.
