View Issue Details

IDProjectCategoryView StatusLast Update
0007476mantisbtadministrationpublic2007-08-02 02:32
Reporterinhale Assigned Togiallu  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
OSFreeBSD 
Product Version1.0.5 
Summary0007476: Sorting issues at "View Issues" page does not work
Description

Subj.

Browsers:

FireFox 1.5.0.7
MS IE 6.0

Versions:

Mantis 1.1.0-CVS (example)
Mantis 1.0.5 (my local server)

Steps To Reproduce

How to reproduce:

1st way:

2nd way:

  • At the same page, click "Sort by:" link
  • Select "Ascending" direction instead of descending (default)
  • The direction arrown is changed but the list is not influenced.
Additional Information

Your own bucgtracker (this one) works fine. That's foul! :)

Also, I might miss an option in the config that changes the behaviour (fixes the bug) thought I think I checked them all...

Please fix it or tell me how to fix :)

Thank you in advance.

PS: I will provide you with any info I have, if necessary. Just ask.

TagsNo tags attached.

Relationships

has duplicate 0007615 closedvboctor Cannot sort issues 
has duplicate 0006274 closedgiallu Sorting doesn't work on Mantis "View Issues" on the menu 

Activities

inhale

inhale

2006-09-26 11:27

reporter   ~0013515

I've just realized that I did not changed the category of the issue. It must be "filters". Sorry for that.

ericchappuis

ericchappuis

2006-09-29 05:49

reporter   ~0013554

I confirm the same issue ou our Mantis system.
It appeared when we switched from version 1.01 to 1.05 final.

mkleinman

mkleinman

2006-09-29 08:37

reporter   ~0013556

I've got the exact same problem ( after upgrading from 1.0.4 to 1.0.5 )

syzop

syzop

2006-10-11 09:31

reporter   ~0013606

I can confirm this issue as well at bugs.unrealircd.org.
Simply put: clicking any of the sort buttons does not influence the sort order (Even though 'the arrow' etc is shown).

It happened after we moved servers... New one has PHP5 and maybe also a more recent MySQL.

After noticing this issue I upgraded from 1.0.1 to 1.0.5, still same issue. So I would say it's not some bug introduced in a recent version, but maybe more of a PHP5 issue ?

syzop

syzop

2006-10-11 09:36

reporter   ~0013607

Last edited: 2006-10-11 12:44

Oh, sorry for that, we switched from PHP5 CGI to mod_php (which we were at, at the previous server), which means we're back at PHP 4.4.3. And still experiencing this problem. So I guess not related to PHP 5 then after all.

EDIT: On a side note, we're now back at PHP5 again ;P

kir

kir

2006-10-16 03:50

reporter   ~0013616

The actual reason is in MySQL. Sorting problem appeared after upgrade from 4.1.19 to 4.1.21. In more details:
Sorting in SQL querys like

SELECT FROM table WHERE id=5 OR id=6 OR id=7 ORDER BY some_field
or
SELECT
FROM table WHERE id in (5,6,7) ORDER BY some_field

doesn't work! This causes problems because such query is used for sorting. In upcoming 4.1.22 there are a lot of fixes deal with ORDER - suppose this case also would work.

syzop

syzop

2006-10-16 08:50

reporter   ~0013618

Last edited: 2006-10-16 08:54

nod @ MySQL issue

References for this MySQL bug:
http://bugs.mysql.com/bug.php?id=21992 (dup of next)
http://bugs.mysql.com/bug.php?id=21456 (says it's fixed now, but no new version released yet)

skipole

skipole

2006-10-16 09:51

reporter   ~0013619

Can one find earlier versions of mysql to download? I couldn't find them 4.1.19 on the MySQL site.

syzop

syzop

2006-10-18 12:20

reporter   ~0013623

Last edited: 2006-10-26 07:57

This seems to be a workaround:

alter table mantis_bug_table ADD INDEX (id);
alter table mantis_bug_table DROP PRIMARY KEY;

Fixes the sort order :)

ericchappuis

ericchappuis

2006-11-01 03:09

reporter   ~0013674

did someone test the proposed solution in note (0013623 by syzop)?
Does not it has side effect on bug creation: The id is incremented correctly?

syzop

syzop

2006-11-01 07:11

reporter   ~0013676

We've been running with this for 2 weeks now, without any problems. Had 8 new bugreports. Yeah id seems to increment ok. Haven't seen any errors or other weird behavior showing up.

kir

kir

2006-11-30 06:56

reporter   ~0013764

The problem has been fixed in 4.1.22, which has been released already.

ericchappuis

ericchappuis

2006-12-29 08:02

reporter   ~0013874

Confirmed that mySql 4.22 fixes the problem... I can't change the ticket stauts!