Closed Bug 460961 Opened 16 years ago Closed 16 years ago

rdf natural sort not respected

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: christian.p, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3
Build Identifier: Mozilla XULRunner 1.9.0.3 - 2008092518

Hello,

we are migrating an XUL application from 1.8.1 to 1.9.

we build many xul elements with rdf datasources with 3-4 depth levels.

I have strange result in some case: I don't precise any sorting, so the elements should be in the order they come in RDF, but still, the first element comes in the last position. (the RDF order is OK)


Reproducible: Always

Steps to Reproduce:
1.Go to the URL
2.See order in the first box 
3.Order should be 12345
Actual Results:  
order is 2-3-4-5-1

Expected Results:  
1-2-3-4-5

the same test with firefox2 works as it should.
Version: unspecified → 1.9.0 Branch
This is a XUL templates bug, I assume, moving it over there.
Component: RDF → XP Toolkit/Widgets: XUL
QA Contact: rdf → xptoolkit.xul
Flags: blocking1.9.0.4?
I found that using only complete template syntax, or only simple template syntax works : http://pingroom.net/test/test_template_order_works.xul

it's the mixing of the two that makes the problem to appear.
This doesn't fit the criteria for our branch security/stability releases. You'll want this fixed on trunk for the upcoming 3.1. Getting it confirmed will be a good first step to gain visibility with the developers. See the support forums at http://support.mozilla.com if you need help with that.
Flags: blocking1.9.0.4? → blocking1.9.0.4-
it still doesn't work well, even with only complete syntax.
I have a big template, with 17 rules inside (nested), and the order is still not the natural order from the RDF.

Any workaround please? it's a major problem for our application
tested with latest firefox nightly (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2pre) Gecko/20081111 Minefield/3.1b2pre).

the bug is still there. For me it's blocking, it's not only visual, but it's a regression, which makes our application not usable (I suppose we're not the only one).
Flags: blocking1.9.1?
There is also a problem where on first load, nothing of the results show up at all, only after a reload.
This regressed between 2006-02-13 and 2006-02-14:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-02-13+06&maxdate=2006-02-14+07&cvsroot=%2Fcvsroot
I guess that's a regression from bug 285631.
Blocks: 285631
Keywords: testcase
Neil, can you please take a look at this?
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to specify the same container variable for all rules. Templates only scan the first rule to determine what this variable is, and simple rules default to using ?uri. Either you need to use <content uri="?uri" ...> in all rules or set the variable explicity using <template container="?medias">.

This causes both the mixing of simple and full rules issue as well as the sorting issue.
Thank you so much. 
I suppose we were lucky that it worked with previous versions.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Flags: blocking1.9.1?
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: