Tracker: Bugs

5 viewFile function disabled - ID: 1124355
Last Update: Comment added ( sits )

viewFile function is disabled on diff only installation.
I would like to be able to view file that the comment
is concerning.

Is there any possible fake valid_repository that would
allow the file view to appear?

I would like to do it without flooding the log by
following error messages:

[Wed Feb 16 17:20:51 2005] codestriker.pl: Use of
uninitialized value in concatenation (.) at
/Users/codestriker/Sites/codestriker-1.8.5/bin/../lib/Codestriker/Action/ViewTopicFile.pm
line 145.


Jan Ruzicka ( ruza ) - 2005-02-16 14:41:05 PST

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 6 )

Date: 2005-05-22 04:29:00 PDT
Sender: sitsProject Admin

Logged In: YES
user_id=208928

Closing this off - as I believe we resolved this issue over
email.



Date: 2005-02-17 20:17:16 PST
Sender: ruza

Logged In: YES
user_id=195140

I am also attaching files to add a "none" repository.


Date: 2005-02-17 19:03:25 PST
Sender: ruza

Logged In: YES
user_id=195140

My task is more along the lines of demonstrating how the
codestriker can help in our environment and how it will fit
to our processes.

I am attaching a patch for the file viewer.


Date: 2005-02-17 15:01:51 PST
Sender: sitsProject Admin

Logged In: YES
user_id=208928

That all sounds reasonable, if you want to send me a patch
with your changes, I'll commit them in.

Also - if yuo need to demonstrate how Codestriker works with
a proper repository being configured, check out the example
on the sf website:

http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=7063366&action=view


Date: 2005-02-16 20:01:09 PST
Sender: ruza

Logged In: YES
user_id=195140

I did not make myself clear.

I was asking for a repository object for a case that there
is NO repository, not even a file.

Current problem on my hands is to prove value of code
striker before it can be approved access to any repository.

The HTML output of a failed local CVS repository looked OKay.
The missing lines had just line numbers and the rest was
populated by the parts of the patch.
(This at least gave the impression what it can do once the
repository is accessible)

The problems with current handling of a failed repository
are two:
a) There are tons of lines screaming about a empty string
concatenation in the apache log. (One entry per missing line
makes the log gargantuan after only a few viewings of a file
[10k lines per view])
b) That there is no indication on the result page that the
repository connection failed (local access to a non
existing repository)
or lines in repository did not match.

------ Possible Solutions -----------
The problem a) should be easy to fix and it should be a
short fix.
ViewTopicFile.pm:
line 145 : $delta_text .= " $filedata[$i]\n";
could be rewritten as
$delta_text .= ' ';
$delta_text .= $filedata[$i] if ($filedata[$i]);
$delta_text .= "\n";

The problem b) has to be carefully evaluated.
I would like to see a small notification message at the end
of the page.
This way the review can continue even in case of failure of
the repository.


Date: 2005-02-16 15:28:41 PST
Sender: sitsProject Admin

Logged In: YES
user_id=208928

We can build a new repository object to potentially do this.
What we need to understand is where are the actual files
located?

What Codestriker needs to understand, is given a filename
within a specific patch, what does it need to do in order to
retrieve its full contents.

If you can provide more information on your setup, we should
be able to build the appropriate repository object, for
example, once that just reads files from a directory
accessible from the web server.

In your situation, would you want to define a "file system"
repository object, which points at a root directory
containing all your source files, and source the data from that?

Perhaps if you can attach an example patch and directory
listing, I can write this for you, it shouldn't be very hard
actually.




Attached Files ( 3 )

Filename Description Download
ViewTopicFile.pm.20050217.patch patch with above mentioned changes in ViewTopicFile.pm Download
None.pm None repository - repository in case there is none Download
RepositoryFactory.pm patch to use the None repository Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2005-05-22 04:29:00 PDT sits
resolution_id None 2005-05-22 04:29:00 PDT sits
close_date - 2005-05-22 04:29:00 PDT sits
File Added 121715: RepositoryFactory.pm 2005-02-17 20:17:17 PST ruza
File Added 121714: None.pm 2005-02-17 20:13:32 PST ruza
File Added 121709: ViewTopicFile.pm.20050217.patch 2005-02-17 19:03:25 PST ruza