Menu

#330 Project created several times

v1.0
open
None
7
2005-10-16
2005-09-15
sdud01
No

Hi,

I have a strange problem...
Here is my configuration :
- Windows XP
- MySQL 4.1.14
- PHP 5.0.5

I had the same problem than the bug 1272753.
This was fixed after changing functions.php with the
following :
switch(DB_TYPE) {
case 'mysqli' :
case 'mysql' : $retstr = 'concat
('.delimit_list', ',$pieces).')'; break;

But I have a recurrent bug I cannot fix. I tried to reinstall
several times, I changed mySql version, PHP version, ...
no way to fix it :

When I create a new project, after the submit, the next
page cannot open for a while (around 1 mn). After, the
page listing all the projects can open but my project is
present 27th times instead of once...

If you have any idea about that...

Thanks,

Regards

Discussion

  • Ulf Erikson

    Ulf Erikson - 2005-09-16

    Logged In: YES
    user_id=592447

    How do you mean "cannot open for a while"? Did you hit
    reload to retry? Is it always (exactly) 27 times? or you
    just wrote "27th times" with the meaning "several times"? Do
    all projects share the same project number or do they have
    unique IDs?

     
  • Ulf Erikson

    Ulf Erikson - 2005-09-21
    • priority: 5 --> 3
     
  • sdud01

    sdud01 - 2005-09-21

    Logged In: YES
    user_id=1345395

    Hi,

    Yes it's always 27 times and all the project have a different ID
    in the database.

    I made a change in project.php that fixes this.
    I put :
    //---------------------CHANGE--------------------
    //$typeOP is set above depending of the project ID
    //new project --> 'create'
    //existing project --> 'update'
    if ($typeOP == 'update')
    {
    list_projects();
    return;
    }
    else
    {
    show_project($projectid);
    return;
    }
    //-------------END CHANGE---------

    instead of :
    //------------ORIGINAL--------------
    header("Location: $me?op=edit&id=$projectid");

    This problem appears on my laptop but not on another one
    (same operating system).
    I had this problem using IE5 and AvantBrowser. I did not try
    another browser.

    Regards,

    //Stphane

     
  • Ulf Erikson

    Ulf Erikson - 2005-09-27

    Logged In: YES
    user_id=592447

    How do you mean that the problem only appears on your
    laptop? Is that with the laptop as server or as client? Please
    check all four combinations to make sure when the problem
    appears and when not.

    It sounds like your browser sees the redirect as a reload.
    Maybe the number '27' could be thanks to a limit in number of
    accepted redirects..

    I don't like "fixing" this the suggested way because I assume
    the redirection is used to make sure a reload will not add a
    new identical project. A check to protect against duplicates
    could be a general enough safety net to help all.

     
  • sdud01

    sdud01 - 2005-09-28

    Logged In: YES
    user_id=1345395

    Hi,

    It appears with my laptop as a server, from any client.
    When I use another laptop as server it works from any client,
    even from my laptop.
    The web server I use is IIS, I think this is the place the
    problem is... There could be a setting I missed but I can't find
    it out.

    I'm going to make some tests with Apache just to see... but I
    don't have a lot of time...

    //Regards,

    Stphane

     
  • Alex Flint

    Alex Flint - 2005-10-16

    Logged In: YES
    user_id=1247877

    I have this problem too. The browser explanation seems
    plausable as it happens when adding projects, versions,
    components, resolutions etc. I am using firefox 1.0.7. Has
    anybody run into this problem under a different browser?

     
  • Ulf Erikson

    Ulf Erikson - 2005-10-16

    Logged In: YES
    user_id=592447

    Alex, the tests by Stphane (2005-09-28 09:56) show that the
    web server might be the problem, not the web browser. What
    server do you use? Can you think of any setting that would
    affect this?

    Benjamin, what do you think of the suggested fix? It would
    help these people but would create duplicates for everyone
    on reload.. How hard would it be to detect that a "new" bug
    is indentical to an old (except for bug_id) and only then
    use the suggested fix?

    I'm raising the priority since this no longer look like an
    isolated problem on a single configuration.

     
  • Ulf Erikson

    Ulf Erikson - 2005-10-16
    • priority: 3 --> 7
    • assigned_to: nobody --> bcurtis
     
  • Alex Flint

    Alex Flint - 2005-10-17

    Logged In: YES
    user_id=1247877

    I'm using apache 2.0.52. Off-hand I can't think of any
    server settings that could be causing this but I'll keep
    trying to figure it out. Thanks for your help.

     
  • nobody

    nobody - 2005-10-23

    Logged In: YES
    user_id=1366772

    I get the same error. Every new project created is shown 27
    times with a unique project id. Here is my configuration:

    OS : Windows XP Professional 2002 SP 2
    Webserver: IIS5.1
    Database: MySQL 4.1.7
    PHP: 5.0.5
    phpbugtracker: 1.0.1

    Browers tested: Netscape 7.2, Internet Explorer 6.0.29,
    Firefox 1.0.7

    Question for sdud01:
    Where in the file (project.php), ie which routine, did you
    make the change?

     
  • sdud01

    sdud01 - 2005-10-24

    Logged In: YES
    user_id=1345395

    Hi,

    I attach the file project.php modified. The change is in the
    function "save_project".

    Regards,

    //Stephane

     
  • sdud01

    sdud01 - 2005-10-24

    workaround

     
  • sdud01

    sdud01 - 2005-10-24

    Logged In: YES
    user_id=1345395

    Hi,

    I attach the file project.php modified. The change is in the
    function "save_project".

    Regards,

    //Stephane

     
  • sdud01

    sdud01 - 2005-10-24

    workaround

     

Log in to post a comment.