[
https://issues.apache.org/jira/browse/NIFI-13329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851164#comment-17851164
]
Pierre Villard commented on NIFI-13329:
---------------------------------------
{quote}Would it make sense for this case to render an error message stating
that the content does not match the mime type? Or there was an error in
processing the content in formatted mode? The UI would render correctly and
show Formatted mode with the message. The user could then change the mode to
Original or Hex to see those views. It addresses the error page your seeing
above. And I think this case is more uncommon. Defaulting to Formatted and
having to manually change to Original when the content in the flowfile is wrong
is less annoying for the user than defaulting to Original and having to
manually change to Formatted when the content in the flowfile is correct.
{quote}
I think that makes perfect sense and is a very good behavior IMO.
> Fallback to raw viewer when formatted viewer fails
> --------------------------------------------------
>
> Key: NIFI-13329
> URL: https://issues.apache.org/jira/browse/NIFI-13329
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Pierre Villard
> Priority: Major
> Attachments: Screenshot 2024-05-30 at 11.19.23.png
>
>
> The formatted viewer (based on the mime.type attribute) recently became the
> default. In case the MIME type is wrong, this would return an error when
> opening the flowfile's content. It could be nice to catch the error and
> fallback to the raw viewer.
> !Screenshot 2024-05-30 at 11.19.23.png|width=611,height=150!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)