RTC 3.0.1.1 web client can't compare some java files
Reported by our developers, after migrating to RTC 3.0.1.1, the RTC web client can no longer display differences for JavaScript (.js) files when viewing a change set.
It says: "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".
These files should be treated like other text-based program source files (e.g. .java) when rendering the diffs.
I'm hoping/assuming that RTC is configurable as to how to display differences for certain file types. Note that the eclipse-based client does successfully display the diffs for .js files.
Is there a way to configure web client to do the same as Eclipse client?
Why it worked in RTC 2.0 web client and stop wokring on 3.0.1.1?
It says: "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".
These files should be treated like other text-based program source files (e.g. .java) when rendering the diffs.
I'm hoping/assuming that RTC is configurable as to how to display differences for certain file types. Note that the eclipse-based client does successfully display the diffs for .js files.
Is there a way to configure web client to do the same as Eclipse client?
Why it worked in RTC 2.0 web client and stop wokring on 3.0.1.1?
2 answers
It says: "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".
It looks like the mime type isn't set to a text type. It doesn't expect the files content to be text so it won't show a comparison. Fix the mime types of your files and you'll be able to compare them.