Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2016-08-25 14:24:29

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

OK, moved a fresh server in a new datacenter.

4.5.7 and 4.6.0-beta.2 in place. Same URLs as before.

DNS zone changes are propagating to reflect new server, the new (correct) server IP is 138.68.62.55. TTL on DNS was/is 10800 (3 hours), so by 1700UTC today the new server should be mostly active.

I’ll update the old server to indicate that it’s, erm, an old server, and there will be a short delay while DNS sorts itself out.

There’s currently a language update required after the first login, I’ll patch the database so that doesn’t happen.

Offline

#17 2016-08-25 14:25:39

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

hcgtv wrote #300798:

The 4.6 demo is looking good, just these errors:
Image directory is not writable: /var/www/vhosts/textpattern.co/beta-demo/live/images
File directory path is not writable: /var/www/vhosts/textpattern.co/beta-demo/www/files

Yep, that’s intentional – I don’t want stuff uploaded. I will add some demo images and files per the release demo so you can get an idea of how things work.

Offline

#18 2016-08-25 15:30:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

hcgtv wrote #300798:

The 4.6 demo is looking good, just these errors:
Image directory is not writable: /var/www/vhosts/textpattern.co/beta-demo/live/images
File directory path is not writable: /var/www/vhosts/textpattern.co/beta-demo/www/files

Beta demo now has a selection of images and files to futz around with. Yay!

Offline

#19 2016-08-25 15:57:04

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

…and SSL (https) is enabled for both release and demo sites.

Last edited by gaekwad (2016-08-25 15:57:37)

Offline

#20 2016-08-25 16:00:51

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: RFC: Improving the Textpattern demo site

gaekwad wrote #300806:

Beta demo now has a selection of images and files to futz around with. Yay!

Even though the image directory is not writable, it let’s me go through the process of replacing the image. Which in turn screws up the original image’s properties.

Offline

#21 2016-08-25 16:04:33

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

hcgtv wrote #300811:

Even though the image directory is not writable, it let’s me go through the process of replacing the image. Which in turn screws up the original image’s properties.

I don’t get that here – if I attempt to upload a replacement image, the filename field gets replaced but the original image remains, along with this error:

/var/www/vhosts/textpattern.co/beta-demo/live/images/10.jpg directory permissions need to be checked.

Offline

#22 2016-08-25 16:07:13

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: RFC: Improving the Textpattern demo site

gaekwad wrote #300812:

I don’t get that here – if I attempt to upload a replacement image, the filename field gets replaced but the original image remains, along with this error:

Killed your pussy, check out the images.

Offline

#23 2016-08-25 16:18:03

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

hcgtv wrote #300813:

Killed your pussy, check out the images.

Huh. So you did. Here’s something – when I replace your .png replacement with a .jpg replacement, the pussy returns.

I wonder…

The image is 9.jpg. You are attempting to replace it with something that will end up with a .png extension. That won’t overwrite the image, but will attempt a new file write (to 9.png, presumably). That fails (yay directory permissions) and throws the 404 question mark. When I replace your 9.png with another replacement of the .jpg variety, the cat comes back…because even though the image didn’t upload, the original 9.jpg is still there.

Edge case, but explains why it’s happening.

Offline

#24 2016-08-25 16:22:59

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: RFC: Improving the Textpattern demo site

gaekwad wrote #300814:

Huh. So you did. Here’s something – when I replace your .png replacement with a .jpg replacement, the pussy returns.

Maybe make txp_file and txp_image read only?

Offline

#25 2016-08-25 16:39:50

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

hcgtv wrote #300815:

Maybe make txp_file and txp_image read only?

Possibly. Locking the tables would prevent other valid stuff happening (change thumbnail dimensions, names, descriptions etc), and this is (in my mind) an edge case. A bad actor could find a way in (I can think of some already that I can’t protect against) and cause a stink for a few hours before the auto-reset kicks in and splats everything.

Offline

#26 2016-08-25 21:19:49

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,443
Website GitHub

Re: RFC: Improving the Textpattern demo site

gaekwad wrote #300814:

The image is 9.jpg. You are attempting to replace it with something that will end up with a .png extension. That won’t overwrite the image, but will attempt a new file write (to 9.png, presumably).

I know this is a locked-down scenario, but I think it’s actually a valid edge case in regular Txp. Replacing any image with the same ID and different extension will trigger some undesirable behaviour. Is there anything we can do in core to help mitigate this situation?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#27 2016-08-25 21:29:43

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

Bloke wrote #300822:

I know this is a locked-down scenario, but I think it’s actually a valid edge case in regular Txp. Replacing any image with the same ID and different extension will trigger some undesirable behaviour. Is there anything we can do in core to help mitigate this situation?

Make the bad stuff go away, Cap’n Stef.

Offline

#28 2016-08-26 03:22:17

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: RFC: Improving the Textpattern demo site

re demo:
发表时间 2 小时 之前
评论 1


…. texted postive

Offline

#29 2016-08-26 08:58:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,723
GitHub

Re: RFC: Improving the Textpattern demo site

bici wrote #300826:

re demo:
发表时间 2 小时 之前
评论 1

Published 10 hours ago
Comments 1

I assume someone changed the UI language. The reset (every three hours) appears to have taken care of it, and it’s back to English — for now.

Offline

#30 2016-08-27 14:07:28

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: RFC: Improving the Textpattern demo site

On the demo site, accessing the admin side takes you the language page if you’re the first one after a reset.

Anyway to avoid that, so that users go straight to the default Write panel?

Offline

Board footer

Powered by FluxBB