cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From borisroman <...@git.apache.org>
Subject [GitHub] cloudstack pull request: Cloudstack-8816 some of the events do not...
Date Fri, 18 Sep 2015 10:59:02 GMT
Github user borisroman commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/849#discussion_r39843941
  
    --- Diff: api/src/org/apache/cloudstack/context/CallContext.java ---
    @@ -90,7 +90,13 @@ public void putContextParameter(Object key, Object value) {
         }
     
         public Object getContextParameter(Object key) {
    -        return context.get(key);
    +        Object value = context.get(key);
    +        //check if the value is present in the toString value of the key
    +        //due to a bug in the way we update the key by serializing and deserializing,
it sometimes gets toString value of the key. @see com.cloud.api.ApiAsyncJobDispatcher#runJob
    +        if(value == null ) {
    +            value = context.get(key.toString());
    --- End diff --
    
    @karuturi What if key doesn't have a toString() method or is null?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message