Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



2 answers

Permanent link
I noticed the same problem with *.html files.
(Fwiw, *.jsp and *.java files seem to work fine in the web client...)

0 votes


Permanent link
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.

0 votes

Comments

How does one "Fix the mime types of [their] files'? 

@ Tim

use the command:
scm property set jazz.mime text/plain (file here)

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 13 '12, 2:49 p.m.

Question was seen: 4,864 times

Last updated: Nov 08 '12, 1:19 p.m.

Confirmation Cancel Confirm