Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 427064

Summary: [search] projects with a colon in the name are not indexed
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2014-01-30 20:03:24 EST
You can create a project with a colon in the project name, such as a project named "OSS Project : Seven". The Orion client and server both handle such a project name without any problems.

The project is not indexed however. Indexing fails with the exception:
!ENTRY org.eclipse.orion.server.core.search 4 0 2014-01-30 20:01:09.116
!MESSAGE Error during searching indexing on file: /workspace/foo/te/test/OrionContent/OSS Project : Seven
!STACK 0
java.net.URISyntaxException: Illegal character in scheme name at index 3: OSS%20Project%20:%20Seven
	at java.net.URI$Parser.fail(URI.java:2840)
	at java.net.URI$Parser.checkChars(URI.java:3013)
	at java.net.URI$Parser.parse(URI.java:3040)
	at java.net.URI.<init>(URI.java:691)
	at java.net.URI.<init>(URI.java:792)
	at org.eclipse.orion.internal.server.search.Indexer.indexProject(Indexer.java:184)
	at org.eclipse.orion.internal.server.search.Indexer.indexWorkspace(Indexer.java:153)
	at org.eclipse.orion.internal.server.search.Indexer.indexUser(Indexer.java:132)
	at org.eclipse.orion.internal.server.search.Indexer.run(Indexer.java:303)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Comment 1 Anthony Hunter CLA 2014-04-10 19:10:06 EDT
This problem is still occurring on deployed orion servers. I will add a warning so that the Indexer will continue on and not crash.
Comment 2 Anthony Hunter CLA 2014-04-15 15:38:00 EDT
(In reply to Anthony Hunter from comment #1)
> This problem is still occurring on deployed orion servers. I will add a
> warning so that the Indexer will continue on and not crash.

The indexer already continues on and skips the project.

I have updated the indexer so that the log is not polluted with these errors. See commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=1fb96a428403abb7f367ca55f5d8c6b2709325d1

leaving this defect open as the project remains not indexed.
Comment 3 Anthony Hunter CLA 2015-01-19 15:42:46 EST
We are no longer using Apache Solr on the Orion server for search so this problem does not occur.