Forums : Technical Issue Help

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.blackduck.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Failed importing code for ChessX

http://www.ohloh.net/projects/9726/enlistments

It looks like the code was successfully downloaded from the SVN repostitory but for step 2 - importing the code - there was a failure.

Stuart Owen over 18 years ago
 

Hi blueshoe,

I think there is a problem in this Subversion repository. Two image files appear to have been created with invalid mime-types, which is causing some problems.

The problem begins at revisions 574 and 575:

$ svn log --verbose -r 574:575 https://chessx.svn.sourceforge.net/svnroot/chessx/trunk/data/themes/
------------------------------------------------------------------------
r574 | tux68 | 2007-05-15 13:52:53 -0700 (Tue, 15 May 2007) | 2 lines
Changed paths:
M /trunk/data/themes/fantasy.png
M /trunk/data/themes/spatial.png

Restore theme graphics, back to cvs versions.

------------------------------------------------------------------------
r575 | mrudolf | 2007-05-15 14:16:35 -0700 (Tue, 15 May 2007) | 2 lines
Changed paths:
M /trunk/data/themes/alpha.png
M /trunk/data/themes/berlin.png
M /trunk/data/themes/fantasy.png
M /trunk/data/themes/merida.png
M /trunk/data/themes/merida_plain.png
M /trunk/data/themes/spatial.png

Trying to fix images.

------------------------------------------------------------------------

Evidently someone was aware that there was a problem, but it's not explained in the comments.

What causes the Ohloh import to fail is the inability to cat some of these images:

$ svn cat -r 574 https://chessx.svn.sourceforge.net/svnroot/chessx/trunk/data/themes/spatial.png@574
?PNG
svn: GET of '/svnroot/chessx/!svn/bc/574/trunk/data/themes/spatial.png': 200 OK (https://chessx.svn.sourceforge.net)

Under the covers, Subversion is complaining about Inconsistent line ending style, which leads me to believe that Subversion does not know that these files are binary. Indeed, if you query the mime type from Subversion:

$ svn propget svn:mime-type -r 574 https://chessx.svn.sourceforge.net/svnroot/chessx/trunk/data/themes/spatial.png

You get a null reponse. If you then query revision 575:

$ svn propget svn:mime-type -r 575 https://chessx.svn.sourceforge.net/svnroot/chessx/trunk/data/themes/spatial.png
image/png

Now you see an appropriate image/png mime type. However, I am unable to cat this revision of the file, either.

Older files in this directory do not have this same problem. I can successfully cat alpha.png, for instance. Curiously, it is marked with mime type application/octet-stream.

I tried checking out the project at revision 574, and while I was able to successfully check out the revision, files fantasy.png and spatial.png appear to be corrupted and can't be opened.

The fix for this seems to be to figure out what is wrong with the repository and correct it -- possibly manually correcting the mime types (which may or may not fix the problem), or deleting the contents of revision 574. This may be a challenge since you are hosted on SourceForge and may not be able to make direct manipulations of the repository.

Robin

Robin Luckey over 18 years ago
 

Hi blueshoe,

Much later, I remembered that Ohloh has two Subversion importers. Our older importer might work in this case, because it doesn't rely on svn cat. I'll schedule a new download with the old importer, and see what happens.

Robin

Robin Luckey over 18 years ago