Revision 7732
Added by Jing Tao over 11 years ago
metacat-common/src/main/java/edu/ucsb/nceas/metacat/common/query/HttpSolrQueryService.java | ||
---|---|---|
132 | 132 |
* It is hard to transform the SolrQueryReponse object to the InputStream object for the HttpSolrServer |
133 | 133 |
* since the transform needs the SolrCore. We have to open the solr url directly to get the InputStream. |
134 | 134 |
* @param query the query params. |
135 |
* @param subjects the user's identity which sent the query |
|
135 |
* @param subjects the user's identity which sent the query. If the Subjects is null, there wouldn't be any access control.
|
|
136 | 136 |
* @return the response |
137 | 137 |
* @throws IOException |
138 | 138 |
* @throws NotFound |
... | ... | |
151 | 151 |
log.debug("==========HttpSolrQueryService.query - the access string after escape special characters string "+accessStr); |
152 | 152 |
queryString = queryString+"&"+FILTERQUERY+"="+accessStr; |
153 | 153 |
|
154 |
} else { |
|
155 |
throw new NotFound("0000", "HttpSolrQueryService.query - There is no identity (even user public) for the user who issued the query"); |
|
156 | 154 |
} |
157 | 155 |
|
158 | 156 |
|
Also available in: Unified diff
Remove the code to throw an exception if the subjects is null in the query method.