MIME types in Web UI 3.0
In the RTC 2.0 web UI, our team used to be able to see the diff for changes for most .NET files (*.cs, *.csproj, *.sln, *.xaml, etc.). Since migrating to RTC 3.0, we cannot see the diff anymore in web UI.
Now we see a message stating, "Differences between the Before and After states of the file cannot be computed because neither of the content types of the states can be displayed: application/unknown, application/unknown."
Obviously, we can change the MIME type of individual files but I am wondering if there is something I missed in the upgrade or if this is a new issue for RTC 3.0.
Now we see a message stating, "Differences between the Before and After states of the file cannot be computed because neither of the content types of the states can be displayed: application/unknown, application/unknown."
Obviously, we can change the MIME type of individual files but I am wondering if there is something I missed in the upgrade or if this is a new issue for RTC 3.0.
2 answers
Hi,
> we can change the MIME type of individual files but I am wondering if there is something I missed in the upgrade or if this is a new issue for RTC 3.0
Yes, in 3.0, RTC SCM Web UI only shows the diff for a file with a content type that is recognized as text - starts with "text/". We also recognize some well known mime types as text - application/xml, application/javascript, application/ecmascript, application/x-javascript.
You're correct than in 2.0.0.2 the diff was displayed regardless of the content type - even if the content was binary. That caused lots of trouble.
I've opened https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/153064 to better support your case. Please add yourself to the CC'list so you can track progress there and provide further input if necessary.
Thank you,
Christophe Cornu
RTC SCM Client
> we can change the MIME type of individual files but I am wondering if there is something I missed in the upgrade or if this is a new issue for RTC 3.0
Yes, in 3.0, RTC SCM Web UI only shows the diff for a file with a content type that is recognized as text - starts with "text/". We also recognize some well known mime types as text - application/xml, application/javascript, application/ecmascript, application/x-javascript.
You're correct than in 2.0.0.2 the diff was displayed regardless of the content type - even if the content was binary. That caused lots of trouble.
I've opened https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/153064 to better support your case. Please add yourself to the CC'list so you can track progress there and provide further input if necessary.
Thank you,
Christophe Cornu
RTC SCM Client