My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3049: Empty fields in search box yield an unexpected error.
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Project Member Reported by sbel...@google.com, Dec 9, 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: current master branch (v2.10-rc0-1076-g44cea2e)

What steps will reproduce the problem?
1. Type one of the proposed keywords into the search, i.e. "project:" and then leave it empty after that.
2. Alternatively visit https://gerrit-review.googlesource.com/#/q/project: or your local instance with that url.
3.

What is the expected output? What do you see instead?
I get the "Code Review - Error" overlay. Additional information reads:
"line 0:-1 no viable alternative at input '<EOF>'"

If no value is given for a field, we should either ignore that field or list all of them, i.e. all projects available in that case above.

Please provide any additional information below.
I noticed this behavior when trying to add another field type "Depends-on:"

Dec 18, 2015
#1 federico...@tiscali.it
Also happens in 2.8.1-4-ga1048ce (https://gerrit.wikimedia.org/r/#/) but used not to happen years ago. Perhaps something changed in an underlying library (I think that, unlike gerrit, the OS of the machine was kept up to date).
Dec 19, 2015
#2 federico...@tiscali.it
Can also happen in the middle of the line for pretty much anything, for instance an autocompleted username which for some reason gerrit no longer likes or:

> Code Review - Error
> line 1:39 no viable alternative at character '%'

for
> message:cdb project:^operations/(puppet%7Cmediawiki-config)
Sign in to add a comment

Powered by Google Project Hosting