Issue 2422: REST API, unable to query changes when project has a space in the name
Status:  Invalid
Owner: ----
Closed:  Jan 2014
Reported by adam...@gmail.com, Jan 23, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.7

What steps will reproduce the problem?
1. create a new project with a space in the name, e.g. 'Project X'
2. create a submission, or two
3. attempt to query for changes like:
/changes/?q=project:Project+X
or
/changes/?q=project:Project%20X

neither seem to return anything.  If I do the same but name the project instead "Project_X" I can query for changes.
/changes/?q=project:Project_X

Understood it may be bad form to put a space in a project name but the gerrit doesn't prevent this when creating a new project.

What is the expected output? What do you see instead?

Should be able to query for changes even if the project name has a space in it (or such project names should be disallowed).

Please provide any additional information below.

Jan 24, 2014
Project Member #2 david.pu...@sonymobile.com
The following query works:

  /changes/?q=project:%22Project+X%22
Jan 24, 2014
Project Member #3 david.pu...@sonymobile.com
BTW you can see the query by looking at the list of open changes in the UI and then looking at the link on the project name, which goes to the query for all open changes for that project.
Jan 24, 2014
Project Member #4 david.pu...@sonymobile.com
Closing.  The REST API is working as expected.
Status: Invalid