Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 225908

Summary: pointing new wiki nav to "about" page
Product: Community Reporter: Mary Ruddy <mary>
Component: WikiAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bjorn.freeman-benson, portal-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 225900    

Description Mary Ruddy CLA 2008-04-06 15:02:20 EDT
So we love the new wiki navigation looking like the website nav.  I got an auto email saying that the Higgins web nav needed to have the "about this project" page at the top.  So I added it to the to tof our web page, then updated the My Foundation meta data for nav to the about page be the new top link.  After waiting overnight, the 'About This Project" tab still doesn't show up, but when you update a Higgins wiki page, you get nav control language at the top of the wiki page.  Nav meta data looked ok to me.  Please advise, or will need to back out having "About this Project" page at the top of the wiki. (see Higgins bugzilla 225900)
Comment 1 Denis Roy CLA 2008-04-07 08:30:04 EDT
cc'ing the Portal team for insight.
Comment 2 Bjorn Freeman-Benson CLA 2008-04-07 10:25:53 EDT
The database looks correct (I examined the live database using 
 select * from v_projectinfo_merged 
  where ProjectId = 'technology.higgins' 
  and MainKey = 'projectleftnav';
There are 12 items numbered 1-12. The only unique things about the "About This Project" item are:
1. It's number 1
2. It's url is the longest url
3. It's url contains an "=" and a "?"

I'm hard pressed to believe that any of these are causing this bug. Thus I believe the bug is in the wiki code that reads the database and builds the left nav. As I don't have access to that code, I cannot provide any more debugging help.
Comment 3 Eclipse Webmaster CLA 2008-04-07 11:02:05 EDT
This is a regex artifact.  The replacement of the text is done by the skin at run time and things like ? and ( are interpreted by the regex that is generated for text replacement.  After talking to Nathan we found a better solution to the php regex tools and that is to use str_replace, which does literal string matching.  I've tested it on the test server and on the live site and it works quite nicely.

Thanks for reporting this Mary!

-M.