You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Michael Vorburger (Jira)" <ji...@apache.org> on 2020/11/21 16:16:00 UTC

[jira] [Comment Edited] (FINERACT-1265) ImageTest > getOriginalSize() FAILED expected: text/plain but was : image/jpeg

    [ https://issues.apache.org/jira/browse/FINERACT-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236703#comment-17236703 ] 

Michael Vorburger edited comment on FINERACT-1265 at 11/21/20, 4:15 PM:
------------------------------------------------------------------------

I suspect this is some confusion, maybe a bug in the JAX RS implementation, related to what the two different {{@GET}} annotated methods in the {{ImagesApiResource}} have as {{@Consumes}} and {{@Produces}}... note how the {{@Produces(MediaType.TEXT_PLAIN)}} variant "forwards" (delegates) to the {{@Produces(MediaType.APPLICATION_OCTET_STREAM)}} one... that seems like asking for trouble, no? -- I'll try to change that to programmatically control it instead.


was (Author: vorburger):
I suspect this is some confusion, maybe a bug in the JAX RS implementation, related to what the two different {{@GET}} annotated methods in the {{ImagesApiResource}} have as {{@Consumes}} and {{@Produces}}... note how the {{@Produces({ MediaType.TEXT_PLAIN })}} variant "forwards" (delegates) to the {{@Produces({ MediaType.APPLICATION_OCTET_STREAM })}} one... that seems like asking for trouble, no? -- I'll try to change that to programmatically control it instead.

> ImageTest > getOriginalSize() FAILED expected: text/plain but was : image/jpeg
> ------------------------------------------------------------------------------
>
>                 Key: FINERACT-1265
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1265
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Michael Vorburger
>            Assignee: Michael Vorburger
>            Priority: Blocker
>             Fix For: 1.5.0
>
>
> [https://travis-ci.com/github/apache/fineract/builds/203311558] (for https://github.com/apache/fineract/pull/1368/), and a number of unrelated recent PRs, have failed due to:
> {noformat}ImageTest > getOriginalSize() FAILED
>  expected: text/plain
>  but was : image/jpeg
>         at org.apache.fineract.integrationtests.client.ImageTest.getOriginalSize(ImageTest.java:57){noformat}
> This goes away when we retry. I don't quite understand how this can be "flaky".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)