Hyperlink URLs not properly formed in Topic List screen. No other Codestriker screens will open.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Hyperlink URLs not properly formed in Topic List screen. No other Codestriker screens will open.

David Ball-2
Hi all,
 
I have installed Codestriker and can open the Topic List screen as described in the Introduction of the User Guide (http://cer00447/codestriker/codestriker.pl in my case), but that is as far as I can get because every link on the page just generates a "The page cannot be found" error.  Looking closely at the screenshots in the User's Guide versus what I have in my browser, it appears the hyperlink URLs are not being correctly formed. Some examples:
 
Create New Topic  :    http://cer00447/topics/create
Search                 :  http://cer00447/topics/search
 
 
I've tried entering the correct search URL (as I have guessed it above) directly into the browser address bar, but I just get back the Topic List screen again.
 
I've had a quick look around the Perl code but I'm no expert in this language so didn't get far.
 
I have not been able to find references to this problem in the mailing list archive or Google. The closest I could find was http://sourceforge.net/mailarchive/message.php?msg_id=45EC9147.3000608%40users.sourceforge.net which is not quite the same as the issue I have.
 
My set-up is:
 
Windows XP Pro (SP3)
IIS (5.1)
Codestriker (1.9.7)
ActivePerl (5.8.9.825)
MySQL (5.1.30)
Browsers : Firefox 3.0.6 and IE6
 
 
My codestriker.conf file (with comments and sensitive info removed) follows. I realise there are some settings in here that still need tweaking - at the moment I'm just trying to get the basics running.
 
$db = 'DBI:mysql:dbname=codestrikerdb';
$dbuser = 'codestriker';
$dbpasswd = '*';
$daemon_email_address = [hidden email];
$mailhost = '*******.********.com';
$use_compression = 0;
$gzip = '/bin/gzip';
$p4 = 'C:\Program Files\Perforce\p4.exe';
$highlighter = '';
$codestriker_css = 'http://cer00447/codestrikerhtml/codestriker.css';
@valid_repositories =
    (
     'perforce:balld@perforce:1666'
    );
$repository_name_map =
{
    'perforce:balld@perforce:1666' => 'Cerillion Perforce'
};
$file_viewer =
{
    '/home/sits/cvs' => 'http://localhost/cgi-bin/cvsweb.cgi',
    'svn:file:///var/svn/project/trunk' =>
        'http://some.whe.re/cgi-bin/viewvc.cgi/trunk/?root=Project&view=markup'
};
@exclude_file_types = ('rtf', 'doc', 'gif', 'bmp', 'jpeg', 'jpg', 'mdb',
         'ppt', 'vsd', 'xls', 'zip', 'tgz', 'tar', 'gz',
         'opt', 'aps', 'ncb', 'a', 'so', 'dll', 'lib',
         'exe', 'png', 'pdf', 'bin', 'out', 'ld', 'fm',
         'indd', 'wav', 'o', 'obj', 'mpp', 'vsw', 'jfif',
         'tif', 'tiff', 'xbm', 'fnt', 'ttf', 'pfm', 'pfb',
         'eps', 'wpj', 'sxi');
$maximum_topic_size_lines = '';
$suggested_topic_size_lines = '';
$NORMAL_MODE = 0;
$COLOURED_MODE = 1;
$COLOURED_MONO_MODE = 2;
$default_topic_create_mode = $COLOURED_MODE;
$default_file_to_view = -1;
@topic_states = ('Open', 'Closed', 'Committed', 'Obsoleted', 'Deleted');
@readonly_states = ('Closed', 'Committed', 'Obsoleted', 'Deleted');
$allow_searchlist = 1;
@project_states = ('Open');
$antispam_email = 0;
$email_send_options =
    {
    comments_sent_to_topic_author => 1,
    comments_sent_to_commenter => 0,
    topic_state_change_sent_to_reviewers => 0
    };
$default_tabwidth = 8;
$sort_diffs_by_filename = 1;
$bug_db = '';
$bug_db = 'noconnection';
$bugtracker = 'http://jira/secure/QuickSearch.jspa?searchString=';
$lxr_map =
{
};
$topic_text_encoding = 'utf8';
$comment_state_metrics =
    [
      { name             => 'Status',
 values           => ['Submitted', 'Invalid', 'Completed'],
 default_value    => 'Submitted',
 show_on_mainpage => ['Submitted' ]
      }
    ];
$metric_config = "all";
 
Many thanks
David

____________________________
David Ball
Cerillion Technologies Limited
Mobile: +44 (0) 7748 306 667
Tel:    +44 (0) 20 7812 7708
Email:  [hidden email]
Web: www.cerillion.com
Address: 27th Floor, Centre Point, London, WC1A 1DU

 

______________________________________________________________________

Cerillion Technologies Limited is a limited liability company registered in England No. 3849601 with Registered Office at The Quadrant, 118 London Road, Kingston, Surrey, KT2 6QJ. VAT registration No. 743 8054 29. Website – http://www.cerillion.com

This email and any attachments with it are intended for the addressee only. It is confidential and may be the subject of legal and/or professional privilege. If you have received this email in error please notify the sender, destroy any copies and delete from your computer systems as any use, disclosure, dissemination, forwarding, printing or copying is strictly prohibited.

The content may be personal or contain personal opinions and cannot be taken as an expression of Cerillion's position. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

Cerillion reserves the right to monitor all incoming and outgoing mail. Whilst every care has been taken to check this outgoing email for viruses, it is your responsibility to carry out any checks upon receipt.
______________________________________________________________________

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Hyperlink URLs not properly formed in Topic List screen. No other Codestriker screens will open.

David Sitsky
Administrator
Hi David,

Yes - this is annoying - some strange interaction between specific
versions of CGI.pm and IIS returning wrong results.

Someday, if I ever get time, I need to install IIS to see this for myself.

I'd either recommend using Apache, or going to
lib/Codestriker/Http/Method.pm, and near the top, change this code:

    # Determine what style URLs are being used.
    if (defined $cgi_style) {
        $self->{cgi_style} = $cgi_style;
    } else {
        $self->{cgi_style} = $query->url() =~ /codestriker.pl/ ? 1 : 0;
    }

to just:

        $self->{cgi_style} = 1;

Cheers,
David

On Fri, Feb 13, 2009 at 12:30 AM, David Ball <[hidden email]> wrote:

> Hi all,
>
> I have installed Codestriker and can open the Topic List screen as described
> in the Introduction of the User Guide
> (http://cer00447/codestriker/codestriker.pl in my case), but that is as far
> as I can get because every link on the page just generates a "The page
> cannot be found" error.  Looking closely at the screenshots in the User's
> Guide versus what I have in my browser, it appears the hyperlink URLs are
> not being correctly formed. Some examples:
>
> Create New Topic  :    http://cer00447/topics/create
> Search                 :  http://cer00447/topics/search
>
> I think these should be something like
> http://cer00447/codestriker/codestriker.pl?action=create  and
> http://cer00447/codestriker/codestriker.pl?action=search
>
> I've tried entering the correct search URL (as I have guessed it above)
> directly into the browser address bar, but I just get back the Topic List
> screen again.
>
> I've had a quick look around the Perl code but I'm no expert in this
> language so didn't get far.
>
> I have not been able to find references to this problem in the mailing
> list archive or Google. The closest I could find was
> http://sourceforge.net/mailarchive/message.php?msg_id=45EC9147.3000608%40users.sourceforge.net which
> is not quite the same as the issue I have.
>
> My set-up is:
>
> Windows XP Pro (SP3)
> IIS (5.1)
> Codestriker (1.9.7)
> ActivePerl (5.8.9.825)
> MySQL (5.1.30)
> Browsers : Firefox 3.0.6 and IE6
>
>
> My codestriker.conf file (with comments and sensitive info removed) follows.
> I realise there are some settings in here that still need tweaking - at the
> moment I'm just trying to get the basics running.
>
> $db = 'DBI:mysql:dbname=codestrikerdb';
> $dbuser = 'codestriker';
> $dbpasswd = '*';
> $daemon_email_address = '*********@***********';
> $mailhost = '*******.********.com';
> $use_compression = 0;
> $gzip = '/bin/gzip';
> $p4 = 'C:\Program Files\Perforce\p4.exe';
> $highlighter = '';
> $codestriker_css = 'http://cer00447/codestrikerhtml/codestriker.css';
> @valid_repositories =
>     (
>      'perforce:balld@perforce:1666'
>     );
> $repository_name_map =
> {
>     'perforce:balld@perforce:1666' => 'Cerillion Perforce'
> };
> $file_viewer =
> {
>     '/home/sits/cvs' => 'http://localhost/cgi-bin/cvsweb.cgi',
>     'svn:file:///var/svn/project/trunk' =>
>
> 'http://some.whe.re/cgi-bin/viewvc.cgi/trunk/?root=Project&view=markup'
> };
> @exclude_file_types = ('rtf', 'doc', 'gif', 'bmp', 'jpeg', 'jpg', 'mdb',
>          'ppt', 'vsd', 'xls', 'zip', 'tgz', 'tar', 'gz',
>          'opt', 'aps', 'ncb', 'a', 'so', 'dll', 'lib',
>          'exe', 'png', 'pdf', 'bin', 'out', 'ld', 'fm',
>          'indd', 'wav', 'o', 'obj', 'mpp', 'vsw', 'jfif',
>          'tif', 'tiff', 'xbm', 'fnt', 'ttf', 'pfm', 'pfb',
>          'eps', 'wpj', 'sxi');
> $maximum_topic_size_lines = '';
> $suggested_topic_size_lines = '';
> $NORMAL_MODE = 0;
> $COLOURED_MODE = 1;
> $COLOURED_MONO_MODE = 2;
> $default_topic_create_mode = $COLOURED_MODE;
> $default_file_to_view = -1;
> @topic_states = ('Open', 'Closed', 'Committed', 'Obsoleted', 'Deleted');
> @readonly_states = ('Closed', 'Committed', 'Obsoleted', 'Deleted');
> $allow_searchlist = 1;
> @project_states = ('Open');
> $antispam_email = 0;
> $email_send_options =
>     {
>     comments_sent_to_topic_author => 1,
>     comments_sent_to_commenter => 0,
>     topic_state_change_sent_to_reviewers => 0
>     };
> $default_tabwidth = 8;
> $sort_diffs_by_filename = 1;
> $bug_db = '';
> $bug_db = 'noconnection';
> $bugtracker = 'http://jira/secure/QuickSearch.jspa?searchString=';
> $lxr_map =
> {
> };
> $topic_text_encoding = 'utf8';
> $comment_state_metrics =
>     [
>       { name             => 'Status',
>  values           => ['Submitted', 'Invalid', 'Completed'],
>  default_value    => 'Submitted',
>  show_on_mainpage => ['Submitted' ]
>       }
>     ];
> $metric_config = "all";
>
> Many thanks
> David
>
> ____________________________
> David Ball
> Cerillion Technologies Limited
> Mobile: +44 (0) 7748 306 667
> Tel:    +44 (0) 20 7812 7708
> Email:  [hidden email]
> Web: www.cerillion.com
> Address: 27th Floor, Centre Point, London, WC1A 1DU
>
>
> ______________________________________________________________________
>
> Cerillion Technologies Limited is a limited liability company registered in
> England No. 3849601 with Registered Office at The Quadrant, 118 London Road,
> Kingston, Surrey, KT2 6QJ. VAT registration No. 743 8054 29. Website –
> http://www.cerillion.com
>
> This email and any attachments with it are intended for the addressee only.
> It is confidential and may be the subject of legal and/or professional
> privilege. If you have received this email in error please notify the
> sender, destroy any copies and delete from your computer systems as any use,
> disclosure, dissemination, forwarding, printing or copying is strictly
> prohibited.
>
> The content may be personal or contain personal opinions and cannot be taken
> as an expression of Cerillion's position. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> Cerillion reserves the right to monitor all incoming and outgoing mail.
> Whilst every care has been taken to check this outgoing email for viruses,
> it is your responsibility to carry out any checks upon receipt.
> ______________________________________________________________________
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>
>

------------------------------------------------------------------------------
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Hyperlink URLs not properly formed in Topic List screen. No other Codestriker screens will open.

David Ball-2
Hi David,

Thanks for the speedy reply. Really appreciated.

I agree Apache is the way to go. I was avoiding it because my poor
laptop is starting to creek under all the stuff it runs, and IIS is
required by some other software that I already use.

In the meantime, I applied your patch to Method.pm and that nearly got
me there. The URLs were now formed like
"http://localhost/?action=search". To get around this I made the very
unsightly hack of replacing

    $self->{url_prefix} = $query->url();

with

    $self->{url_prefix} = "codestriker.pl";

Which probably highlights my ignorance of the code, but has got things
working for now.

My next problem is that when I create a new topic there is no repository
list to choose from. I expect my Perforce settings in codestriker.conf
are to blame, so I'll get stuck in and work it out.

Thanks again,
David


-----Original Message-----
From: David Sitsky [mailto:[hidden email]]
Sent: 12 February 2009 20:56
To: David Ball
Cc: [hidden email]
Subject: Re: [Codestriker-user] Hyperlink URLs not properly formed in
Topic List screen. No other Codestriker screens will open.

Hi David,

Yes - this is annoying - some strange interaction between specific
versions of CGI.pm and IIS returning wrong results.

Someday, if I ever get time, I need to install IIS to see this for
myself.

I'd either recommend using Apache, or going to
lib/Codestriker/Http/Method.pm, and near the top, change this code:

    # Determine what style URLs are being used.
    if (defined $cgi_style) {
        $self->{cgi_style} = $cgi_style;
    } else {
        $self->{cgi_style} = $query->url() =~ /codestriker.pl/ ? 1 : 0;
    }

to just:

        $self->{cgi_style} = 1;

Cheers,
David

On Fri, Feb 13, 2009 at 12:30 AM, David Ball <[hidden email]>
wrote:

> Hi all,
>
> I have installed Codestriker and can open the Topic List screen as
> described in the Introduction of the User Guide
> (http://cer00447/codestriker/codestriker.pl in my case), but that is
> as far as I can get because every link on the page just generates a
> "The page cannot be found" error.  Looking closely at the screenshots
> in the User's Guide versus what I have in my browser, it appears the
> hyperlink URLs are not being correctly formed. Some examples:
>
> Create New Topic  :    http://cer00447/topics/create
> Search                 :  http://cer00447/topics/search
>
> I think these should be something like
> http://cer00447/codestriker/codestriker.pl?action=create  and
> http://cer00447/codestriker/codestriker.pl?action=search
>
> I've tried entering the correct search URL (as I have guessed it
> above) directly into the browser address bar, but I just get back the
> Topic List screen again.
>
> I've had a quick look around the Perl code but I'm no expert in this
> language so didn't get far.
>
> I have not been able to find references to this problem in the mailing

> list archive or Google. The closest I could find was
> http://sourceforge.net/mailarchive/message.php?msg_id=45EC9147.3000608
> %40users.sourceforge.net which is not quite the same as the issue I
have.

>
> My set-up is:
>
> Windows XP Pro (SP3)
> IIS (5.1)
> Codestriker (1.9.7)
> ActivePerl (5.8.9.825)
> MySQL (5.1.30)
> Browsers : Firefox 3.0.6 and IE6
>
>
> My codestriker.conf file (with comments and sensitive info removed)
follows.

> I realise there are some settings in here that still need tweaking -
> at the moment I'm just trying to get the basics running.
>
> $db = 'DBI:mysql:dbname=codestrikerdb'; $dbuser = 'codestriker';
> $dbpasswd = '*'; $daemon_email_address = '*********@***********';
> $mailhost = '*******.********.com'; $use_compression = 0; $gzip =
> '/bin/gzip';
> $p4 = 'C:\Program Files\Perforce\p4.exe'; $highlighter = '';
> $codestriker_css = 'http://cer00447/codestrikerhtml/codestriker.css';
> @valid_repositories =
>     (
>      'perforce:balld@perforce:1666'
>     );
> $repository_name_map =
> {
>     'perforce:balld@perforce:1666' => 'Cerillion Perforce'
> };
> $file_viewer =
> {
>     '/home/sits/cvs' => 'http://localhost/cgi-bin/cvsweb.cgi',
>     'svn:file:///var/svn/project/trunk' =>
>
>
'http://some.whe.re/cgi-bin/viewvc.cgi/trunk/?root=Project&view=markup'
> };
> @exclude_file_types = ('rtf', 'doc', 'gif', 'bmp', 'jpeg', 'jpg',
'mdb',

>          'ppt', 'vsd', 'xls', 'zip', 'tgz', 'tar', 'gz',
>          'opt', 'aps', 'ncb', 'a', 'so', 'dll', 'lib',
>          'exe', 'png', 'pdf', 'bin', 'out', 'ld', 'fm',
>          'indd', 'wav', 'o', 'obj', 'mpp', 'vsw', 'jfif',
>          'tif', 'tiff', 'xbm', 'fnt', 'ttf', 'pfm', 'pfb',
>          'eps', 'wpj', 'sxi');
> $maximum_topic_size_lines = '';
> $suggested_topic_size_lines = '';
> $NORMAL_MODE = 0;
> $COLOURED_MODE = 1;
> $COLOURED_MONO_MODE = 2;
> $default_topic_create_mode = $COLOURED_MODE; $default_file_to_view =
> -1; @topic_states = ('Open', 'Closed', 'Committed', 'Obsoleted',
> 'Deleted'); @readonly_states = ('Closed', 'Committed', 'Obsoleted',
> 'Deleted'); $allow_searchlist = 1; @project_states = ('Open');
> $antispam_email = 0; $email_send_options =
>     {
>     comments_sent_to_topic_author => 1,
>     comments_sent_to_commenter => 0,
>     topic_state_change_sent_to_reviewers => 0
>     };
> $default_tabwidth = 8;
> $sort_diffs_by_filename = 1;
> $bug_db = '';
> $bug_db = 'noconnection';
> $bugtracker = 'http://jira/secure/QuickSearch.jspa?searchString=';
> $lxr_map =
> {
> };
> $topic_text_encoding = 'utf8';
> $comment_state_metrics =
>     [
>       { name             => 'Status',
>  values           => ['Submitted', 'Invalid', 'Completed'],
>  default_value    => 'Submitted',
>  show_on_mainpage => ['Submitted' ]
>       }
>     ];
> $metric_config = "all";
>
> Many thanks
> David
>
> ____________________________
> David Ball
> Cerillion Technologies Limited
> Mobile: +44 (0) 7748 306 667
> Tel:    +44 (0) 20 7812 7708
> Email:  [hidden email]
> Web: www.cerillion.com
> Address: 27th Floor, Centre Point, London, WC1A 1DU
>
>
> ______________________________________________________________________
>
> Cerillion Technologies Limited is a limited liability company
> registered in England No. 3849601 with Registered Office at The
> Quadrant, 118 London Road, Kingston, Surrey, KT2 6QJ. VAT registration

> No. 743 8054 29. Website - http://www.cerillion.com
>
> This email and any attachments with it are intended for the addressee
only.
> It is confidential and may be the subject of legal and/or professional

> privilege. If you have received this email in error please notify the
> sender, destroy any copies and delete from your computer systems as
> any use, disclosure, dissemination, forwarding, printing or copying is

> strictly prohibited.
>
> The content may be personal or contain personal opinions and cannot be

> taken as an expression of Cerillion's position. Internet
> communications cannot be guaranteed to be timely, secure, error or
> virus-free. The sender does not accept liability for any errors or
omissions.
>
> Cerillion reserves the right to monitor all incoming and outgoing
mail.
> Whilst every care has been taken to check this outgoing email for
> viruses, it is your responsibility to carry out any checks upon
receipt.

> ______________________________________________________________________
>
> ----------------------------------------------------------------------
> -------- Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and
> code to build responsive, highly engaging applications that combine
> the power of local resources and data with the reach of the web.
> Download the Adobe AIR SDK and Ajax docs to start building
> applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>
>
______________________________________________________________________

Cerillion Technologies Limited is a limited liability company registered in England No. 3849601 with Registered Office at The Quadrant, 118 London Road, Kingston, Surrey, KT2 6QJ. VAT registration No. 743 8054 29. Website – http://www.cerillion.com

This email and any attachments with it are intended for the addressee only. It is confidential and may be the subject of legal and/or professional privilege. If you have received this email in error please notify the sender, destroy any copies and delete from your computer systems as any use, disclosure, dissemination, forwarding, printing or copying is strictly prohibited.

The content may be personal or contain personal opinions and cannot be taken as an expression of Cerillion's position. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

Cerillion reserves the right to monitor all incoming and outgoing mail. Whilst every care has been taken to check this outgoing email for viruses, it is your responsibility to carry out any checks upon receipt.
______________________________________________________________________


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Hyperlink URLs not properly formed in Topic List screen. No other Codestriker screens will open.

David Sitsky
Administrator
Hi David,

> I agree Apache is the way to go. I was avoiding it because my poor
> laptop is starting to creek under all the stuff it runs, and IIS is
> required by some other software that I already use.

Certainly some strange stuff going on between IIS and CGI.pm.

> My next problem is that when I create a new topic there is no repository
> list to choose from. I expect my Perforce settings in codestriker.conf
> are to blame, so I'll get stuck in and work it out.

If you only have one repository defined, then the list is not shown,
since there is no choice.

Cheers,
David

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user