hadoop-cloud / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Update media link entry calls wrong method #261

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.send a PUT request to a media link entry

What is the expected output? 
the producer's updateEntry method should be called.

What do you see instead?
the updateMediaLinkEntry of the extension is called. 

What version of the product are you using?
0.7

On what operating system?
n.a.

Please provide any additional information below.

org.odata4j.producer.resources.EntityRequestResource class, method 
updateEntity calls the wrong method, as update should not update the MR, but 
the MLE.

   if (Boolean.TRUE.equals(entitySet.getType().getHasStream())) { // getHasStream can return null
      // yes it is!
      return updateMediaLinkEntry(httpHeaders, uriInfo, producer, entitySet, payload, OEntityKey.parse(id));
    }

Original issue reported on code.google.com by frank.h....@gmail.com on 17 Jun 2013 at 1:42