[Xerte-dev] Re: testing upgrade

Pat Lockley patrick.lockley at googlemail.com
Fri Jul 13 09:33:54 BST 2012


I can't help much on this as I don't know how the new authentication
works, but guest makes more sense than guest2

If it was up to me, I'd not want demo.txt users to upgrade really,
think that'll get painful.

On Fri, Jul 13, 2012 at 9:31 AM, Ron Mitchell <ronm at mitchellmedia.co.uk> wrote:
> Hi
>
> I tested upgrading some older localhost xampp installations yesterday e.g.
> by dragging 1.8 code over the top of the earlier version and also running
> upgrade.php
>
> As far as tests so far this seems to work fine but I did notice there had
> been a change in demo.txt at some point which could cause problems for those
> upgrading a xampp install. I guess this might be a question for Pat and a
> judgement call as to what to use for the guest account username....
>
>
>
> 1. At some point in demo.txt $_SESSION['toolkits_logon_username'] = "guest";
> was changed to $_SESSION['toolkits_logon_username'] = "guest2"; and the
> current 1.7 zip download has $_SESSION['toolkits_logon_username'] =
> "guest2";
>
>
>
> 2. The xot1.8 code in /library/Xerte/Authentication/Guest.php sets guest as
> the username e.g.
>
> public function getUsername() {
>
>         return 'guest';
>
>     }
>
>
>
> 3. The reason this is relevant is that at the moment if someone upgrades a
> xampp 1.7 install which is using demo.txt code rather than switch.txt code
> they won't see their previous projects. Solution for that would be to change
> Guest.php to use guest2 rather than guest. However in older versions and I'm
> not sure exactly when the username in demo.txt was guest rather than guest2
> so upgrading these works fine.
>
>
>
> Questions:
>
> a) Should we change the 1.8 code to use guest2? e.g. will work ok for more
> recent installs and perhaps add a note about changing this for older
> installs
>
> b) Or should we leave 1.8 code as guest and add a note about changing this
> for more recent installs?
>
> c) Or is there a way we can check for in the code and use guest or guest2
> accordingly?
>
>
>
> HTH
>
> Ron
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do not
> use, copy or disclose the information contained in this message or in any
> attachment.  Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>



More information about the Xerte-dev mailing list