You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (Created) (JIRA)" <ji...@apache.org> on 2012/01/16 18:55:39 UTC
[jira] [Created] (JCR-3210) NPE in spi2dav when server does not
send all headers
NPE in spi2dav when server does not send all headers
----------------------------------------------------
Key: JCR-3210
URL: https://issues.apache.org/jira/browse/JCR-3210
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-spi2dav
Affects Versions: 2.3.5
Reporter: Tobias Bocanegra
Priority: Minor
The ValueLoader may throw a NPE if the desired headers are not present in the response:
org.apache.jackrabbit.spi2davex.ValueLoader:
public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
....
for (String name : headerNames) {
---> headers.put(name, method.getResponseHeader(name).getValue());
}
.....
}
In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JCR-3210) NPE in spi2dav when server does not
send all headers
Posted by "Jukka Zitting (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-3210:
-------------------------------
Fix Version/s: (was: 2.6)
2.4
Merged to the 2.4 branch in revision 1232469.
> NPE in spi2dav when server does not send all headers
> ----------------------------------------------------
>
> Key: JCR-3210
> URL: https://issues.apache.org/jira/browse/JCR-3210
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-spi2dav
> Affects Versions: 2.3.5
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Priority: Minor
> Fix For: 2.4
>
>
> The ValueLoader may throw a NPE if the desired headers are not present in the response:
> org.apache.jackrabbit.spi2davex.ValueLoader:
> public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
> ....
> for (String name : headerNames) {
> ---> headers.put(name, method.getResponseHeader(name).getValue());
> }
> .....
> }
> In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
> this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (JCR-3210) NPE in spi2dav when server does not
send all headers
Posted by "Tobias Bocanegra (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Bocanegra reassigned JCR-3210:
-------------------------------------
Assignee: Tobias Bocanegra
> NPE in spi2dav when server does not send all headers
> ----------------------------------------------------
>
> Key: JCR-3210
> URL: https://issues.apache.org/jira/browse/JCR-3210
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-spi2dav
> Affects Versions: 2.3.5
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Priority: Minor
>
> The ValueLoader may throw a NPE if the desired headers are not present in the response:
> org.apache.jackrabbit.spi2davex.ValueLoader:
> public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
> ....
> for (String name : headerNames) {
> ---> headers.put(name, method.getResponseHeader(name).getValue());
> }
> .....
> }
> In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
> this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JCR-3210) NPE in spi2dav when server does not
send all headers
Posted by "Tobias Bocanegra (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Bocanegra resolved JCR-3210.
-----------------------------------
Resolution: Fixed
fixed by checking for NULL
> NPE in spi2dav when server does not send all headers
> ----------------------------------------------------
>
> Key: JCR-3210
> URL: https://issues.apache.org/jira/browse/JCR-3210
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-spi2dav
> Affects Versions: 2.3.5
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Priority: Minor
>
> The ValueLoader may throw a NPE if the desired headers are not present in the response:
> org.apache.jackrabbit.spi2davex.ValueLoader:
> public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
> ....
> for (String name : headerNames) {
> ---> headers.put(name, method.getResponseHeader(name).getValue());
> }
> .....
> }
> In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
> this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JCR-3210) NPE in spi2dav when server does not
send all headers
Posted by "Jukka Zitting (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-3210:
-------------------------------
Affects Version/s: (was: 2.3.5)
2.2.10
2.3.6
Fix Version/s: 2.2.11
Merged to the 2.2 branch in revision 1235796.
> NPE in spi2dav when server does not send all headers
> ----------------------------------------------------
>
> Key: JCR-3210
> URL: https://issues.apache.org/jira/browse/JCR-3210
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-spi2dav
> Affects Versions: 2.2.10, 2.3.6
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Priority: Minor
> Fix For: 2.2.11, 2.3.7
>
>
> The ValueLoader may throw a NPE if the desired headers are not present in the response:
> org.apache.jackrabbit.spi2davex.ValueLoader:
> public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
> ....
> for (String name : headerNames) {
> ---> headers.put(name, method.getResponseHeader(name).getValue());
> }
> .....
> }
> In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
> this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JCR-3210) NPE in spi2dav when server does not
send all headers
Posted by "Tobias Bocanegra (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Bocanegra updated JCR-3210:
----------------------------------
Fix Version/s: 2.6
> NPE in spi2dav when server does not send all headers
> ----------------------------------------------------
>
> Key: JCR-3210
> URL: https://issues.apache.org/jira/browse/JCR-3210
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-spi2dav
> Affects Versions: 2.3.5
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Priority: Minor
> Fix For: 2.6
>
>
> The ValueLoader may throw a NPE if the desired headers are not present in the response:
> org.apache.jackrabbit.spi2davex.ValueLoader:
> public Map<String, String> loadHeaders(String uri, String[] headerNames) throws IOException, RepositoryException {
> ....
> for (String name : headerNames) {
> ---> headers.put(name, method.getResponseHeader(name).getValue());
> }
> .....
> }
> In my case, the server does not return the ETag response header, but the 'loadHeaders' is indirectly called by the QValueFactoryImpl:
> this.preInitialize(new String[] {HEADER_ETAG, HEADER_LAST_MODIFIED});
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira