2010-12-10, 05:33:25
Hi,
I found a small but annoying bug. Don't really know how to reproduce it as I just found it but I think GS didn't validate the slug I typed when creating a new page.
I created a page and wrongly left a space at the end of the slug name, the XML file was created with that space and the extension was appended to that name, e.g.: "about .xml". The page is created correctly, all data is saved, and the page is listed in the admin interface but if I try to access it, either in the admin interface or the front-end, I get a "page doesn't exist" error.
I'll try to find out more and see if I can provide a fix, just posting so that I don't forget and so that anyone else can correct the issue if they have the time.
As a work around, one can just rename the XML file to remove the space.
I found a small but annoying bug. Don't really know how to reproduce it as I just found it but I think GS didn't validate the slug I typed when creating a new page.
I created a page and wrongly left a space at the end of the slug name, the XML file was created with that space and the extension was appended to that name, e.g.: "about .xml". The page is created correctly, all data is saved, and the page is listed in the admin interface but if I try to access it, either in the admin interface or the front-end, I get a "page doesn't exist" error.
I'll try to find out more and see if I can provide a fix, just posting so that I don't forget and so that anyone else can correct the issue if they have the time.
As a work around, one can just rename the XML file to remove the space.
Rejoice! For very bad things are about to happen.