[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-28 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15397594#comment-15397594
 ] 

ASF GitHub Bot commented on SOLR-8596:
--

Github user arafalov closed the pull request at:

https://github.com/apache/lucene-solr/pull/56


> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Assignee: Jan Høydahl
>Priority: Minor
>  Labels: local-parameters
> Fix For: 6.2, master (7.0)
>
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-28 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15397593#comment-15397593
 ] 

ASF GitHub Bot commented on SOLR-8596:
--

Github user arafalov commented on the issue:

https://github.com/apache/lucene-solr/pull/56
  
Fixed now.


> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Assignee: Jan Høydahl
>Priority: Minor
>  Labels: local-parameters
> Fix For: 6.2, master (7.0)
>
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15397577#comment-15397577
 ] 

ASF subversion and git services commented on SOLR-8596:
---

Commit 3292acdb50fa77c693bc8c094b3ba4760a864b8f in lucene-solr's branch 
refs/heads/branch_6x from [~janhoy]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3292acd ]

SOLR-8596: Split UIs RAW query params only on first equal sign
(cherry picked from commit c9935b4)


> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Assignee: Jan Høydahl
>Priority: Minor
>  Labels: local-parameters
> Fix For: 6.2, master (7.0)
>
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15397555#comment-15397555
 ] 

ASF subversion and git services commented on SOLR-8596:
---

Commit c9935b478839a602616c1c6b76e0d3bb06d8f789 in lucene-solr's branch 
refs/heads/master from [~janhoy]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c9935b4 ]

SOLR-8596: Split UIs RAW query params only on first equal sign


> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Assignee: Jan Høydahl
>Priority: Minor
>  Labels: local-parameters
> Fix For: 6.2, master (7.0)
>
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-27 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15395217#comment-15395217
 ] 

ASF GitHub Bot commented on SOLR-8596:
--

Github user liuhongyi0101 commented on the issue:

https://github.com/apache/lucene-solr/pull/56
  
8 hours ago,good


> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Priority: Minor
>  Labels: local-parameters
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-26 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15394823#comment-15394823
 ] 

ASF GitHub Bot commented on SOLR-8596:
--

GitHub user arafalov opened a pull request:

https://github.com/apache/lucene-solr/pull/56

SOLR-8596: Split only on first equal sign

Being more careful about splitting only on first equal sign, not all of 
them for raw requests. This avoids breaking local parameters syntax.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/arafalov/lucene-solr-contributions 
alex-SOLR-8596

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/lucene-solr/pull/56.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #56


commit d80ce4a71fe5ac219355d4c096791a17f4173e00
Author: Alexandre Rafalovitch 
Date:   2016-07-27T00:02:00Z

SOLR-8596: Split only on first equal sign




> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Priority: Minor
>  Labels: local-parameters
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8596) Web UI doesn't correctly generate queries which include local parameters

2016-07-26 Thread Alexandre Rafalovitch (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15394793#comment-15394793
 ] 

Alexandre Rafalovitch commented on SOLR-8596:
-

I confirm this against the trunk with 
{code}
 stats=true={!min=true max=true}popularity
{code}

> Web UI doesn't correctly generate queries which include local parameters
> 
>
> Key: SOLR-8596
> URL: https://issues.apache.org/jira/browse/SOLR-8596
> Project: Solr
>  Issue Type: Bug
>  Components: web gui
>Affects Versions: 5.4
> Environment: Windows 8.1 Pro x64
>Reporter: Ismael Teijeiro Flórez
>Priority: Minor
>  Labels: local-parameters
>
> When configuring the "Raw Query Parameters" field for a query with a value 
> like the following, the generated query is incorrect:
> {{stats=true=\{!min=true 20max=true\}MYFIELD}}
> The generated query in this case: 
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0=\{!min=true=json
> {noformat}
> As you can see, the following fragment is incorrect: {{stats.field=\{!min}}.
> This is the obtained response:
> {noformat}
> {
>   "responseHeader":{
> "status":400,
> "QTime":0,
> "params":{
>   "indent":"on",
>   "stats.field":"{!min",
>   "stats":"true",
>   "q":"*:*",
>   "_":"1453742574279",
>   "wt":"json",
>   "rows":"0"}},
>   "error":{
> "msg":"Unable to parse stats.field: {!min due to: Expected identifier at 
> pos 5 str='{!min'",
> "code":400}}
> {noformat}
> If the following URL is pasted directly in the browser, the query works as 
> expected:
> {noformat}
> http://localhost:8983/solr/mycollection/select?indent=on=*:*=0={!min=true
>  max=true}MYFIELD=true=json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org