Canalplan Bug Tracker - Canalplan
View Issue Details
0000223Canalplan [All Projects] Server Configurationpublic2017-01-05 09:382019-04-21 20:12
Reporteruser3 
Assigned ToStephen Atty 
PrioritylowSeverityminorReproducibilityhave not tried
StatusassignedResolutionopen 
PlatformOSOS Version
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0000223: Upgrade Bugtracker to Version 2
DescriptionVersion 2.0 of Mantis is out - need to upgrade to it.

This is a ticket for me to just track work.

DB Schema is the same so upgrading on BETA will not affect live work.
TagsNo tags attached.
related to 0000225closed  Canalplan Bug Tracker Error 
Attached Files

Notes
(0000842)
Stephen Atty   
2017-01-05 18:42   
Two core bits of functionality which we use to wrap Mantis BT into Canalplan have been removed from Mantis BT version 2.0. This means that we can't put the left hand menu onto the Mantis pages.
(0000843)
Nick Atty   
2017-01-05 19:36   
That's a shame. Is there a reason for it?
(0000878)
Nick Atty   
2017-01-26 07:22   
Could we just use an iframe? A static or dynamic CanalPlan page with an iframe to contain Mantis. It would all be from the same site so none of the same origin stuff should cause problems?

It also means that future updates are easier as there's no special configuration.

We'd lose the styling (although we could write some easy JavaScript to change - again, SOP should allow that).
http://stackoverflow.com/questions/583753/using-css-to-affect-div-style-inside-iframe

Do you want to mock it up, and I'll change the generation code once we know what it should look like?
(0000879)
Stephen Atty   
2017-01-26 08:44   
We can do CSS as it supports that, I think all we'll need is a full empty page with a iframe in it where we have the main content DIV.

I'll try it in Beta this weekend...

It would also fix http://canalplan.org.uk/bugtrack/view.php?id=225
(0000880)
Stephen Atty   
2017-01-26 18:23   
Suspect we can't do it as the urls call lots of different files so I'd have to create a whole set of aliases to turn calls to those pages into calls to my wrapper page which pass the original page name and parameters.
(0000881)
Nick Atty   
2017-01-26 18:39   
(Last edited: 2017-01-26 19:00)
I suspect it could be done with one clever regexp in the aliases.

Or if too troublesome, if we can style it we may have to just do that and lose the menu. We could make sure all links to bugs open in a new window to reduce the damage.

But don't links inside an iframe open inside the frame anyway?

(0000882)
Stephen Atty   
2017-01-26 19:11   
Without the framing this is what the new version looks like:

http://beta.canalplan.org.uk/newmantis/index.php
(0000891)
Stephen Atty   
2017-01-27 10:14   
Links in an iframe open in the parent window unless you give the iframe a name and add that as a target to all the links.

There seems to be no movement from Mantis on putting this functionality back in although people have pointed out that it stops you doing exactly what we've done and it something that businesses use.

So maybe opening in a new window is the best option. I've changed the logout button to "Return to Canalplan" and stopped it actually logging out (which trashes the cookie).
(0000892)
Stephen Atty   
2017-01-27 10:15   
And the auto close plugin doesn't work - so I've got to fix that too as the developer isn't supporting it any more.
(0000920)
Stephen Atty   
2017-02-03 13:01   
Auto close plugin is just about working ... needs some reworking to fit in with the new style.

The problem with the header and footer includes seems to be slated for the 2.2 release (They've already released 2.1)
(0001085)
Stephen Atty   
2017-04-15 13:40   
Has been pushed back as they've still not fixed the site integration issue

Issue History
2017-01-05 09:38user3New Issue
2017-01-05 09:39user3Assigned To => user3
2017-01-05 09:39user3Statusnew => assigned
2017-01-05 18:42user3Note Added: 0000842
2017-01-05 19:36Nick AttyNote Added: 0000843
2017-01-26 07:22Nick AttyNote Added: 0000878
2017-01-26 08:44user3Note Added: 0000879
2017-01-26 18:23user3Note Added: 0000880
2017-01-26 18:39Nick AttyNote Added: 0000881
2017-01-26 19:00Nick AttyNote Edited: 0000881bug_revision_view_page.php?bugnote_id=881#r117
2017-01-26 19:11user3Note Added: 0000882
2017-01-27 07:10Nick AttyRelationship addedrelated to 0000225
2017-01-27 10:14user3Note Added: 0000891
2017-01-27 10:15user3Note Added: 0000892
2017-02-03 13:01user3Note Added: 0000920
2017-04-15 13:40user3Note Added: 0001085
2019-04-21 20:12Stephen AttyAssigned Touser3 => Stephen Atty