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

Bug 492586

Summary: Calling fileClient#search with a resource of empty string throws exception
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: NodeAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 12.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2016-04-27 14:05:56 EDT
If you make a call to fileClient#search like:

.search(
  {
   'resource': '',
   'keyword': 'deps1',
   'sort': 'Name asc', //$NON-NLS-1$
   'nameSearch': true,
   'fileType':'js,
   'start': 0,
   'rows': 30
  }
)

the following is reported in the console:

xhr.js:175 GET http://mrennie-target.orion.eclipse.org:9000/filesearch?sort=Name%20asc&rows=30&start=0&q=NameLower:deps1*+Location:* 500 (ENOENT: no such file or directory, scandir '/localdata/orion.eclipse.org/serverworkspace/mr/mrennie/OrionContent*/')

This was fixed in the Java server in bug 486516
Comment 2 Silenio Quarti CLA 2016-04-28 11:31:03 EDT
I have reverted this change, since it breaks file search with a project scope.