Shiny Red Apples

Shiny Red Apples (Personal Blog of Harald Ponce de Leon)

1,273 notes &

Improving CoreUpdate

One of the great new features of our framework is the ability to perform upgrades via the Admin Dashboard, where update packages are listed, modified files can be seen, and upgrades can be performed at the click of a button.

Unfortunately not everyone will get to experience how great this can work with the v3.0.1 release as CoreUpdate in v3.0 can detect incorrect file permissions under certain server environments during an upgrade procedure, and reports back of a successful upgrade when no files were updated at all. This affects you if after the upgrade to v3.0.1, v3.0.1 is still listed as an available update package to upgrade to.

Those affected can download the manual v3.0-to-v3.0.1 upgrade package to extract and copy over to their installation via FTP. Although also an easy procedure, this is not the kind of experience we want to share with you when upgrading.

We’ve taken this opportunity to improve CoreUpdate in v3.0.1 and are extremely pleased with how it now handles upgrades.

CoreUpdate utilizes Phar to download signed phar update packages from our server, to list the contents of the update package to show which files are going to be modified, and to extract the files over the installation to perform the upgrade.

It sounds easy, but when file permissions become an issue, Phar panics and produces a fatal error that can stop further processing of PHP code.

We’ve improved CoreUpdate to better handle file permissions and situations where Phar can produce unexpected errors. Instead of just extracting files in an update package to the installation, CoreUpdate now tracks which files are going to be modified, backs those files up, extracts the updated files in place, and if all files have been successfully updated, goes back and deletes the older files no longer necessary. If an unexpected error occurs, CoreUpdate deletes the files that have been extracted and restores the original files automatically reverting to the original state.

There are a lot of server environments and file permissions CoreUpdate has to handle, and we’re striving to make it “just work” to provide the best user experience as possible.

CoreUpdate is still in its infancy. We imagine that update packages can first be tried before an actual upgrade is performed, to test and make sure customizations continue to function as normal in a live environment. Phar allows this and we look forward to taking advantage of its full feature set to make this possible.

We know that feeling of pushing an “Upgrade” button and want to turn that fear into a pleasurable moment. We enjoy the challenges working with the strictest levels of error reporting to richen our creativity and produce even better code.

And we can’t wait to bring CoreUpdate to Add-Ons!

Filed under oscom30

  1. rev-mortgs reblogged this from oscommerce
  2. lexmark-x544-toner reblogged this from haraldpdl
  3. eobuildingnetre24 reblogged this from oscommerce
  4. eobuildingnetre16 reblogged this from oscommerce
  5. nycmakirtia reblogged this from oscommerce
  6. download-vimeo reblogged this from haraldpdl
  7. ybevebsemobtgyges-55 reblogged this from oscommerce
  8. topagentwebsites reblogged this from haraldpdl
  9. bettythelaw reblogged this from oscommerce and added:
    Clutch i465 black Michael Kors Hamilton On Tropical Pattern Because if there has been inadequate numbers solutions with...
  10. bettythelaw reblogged this from oscommerce and added:
    Clutch i465 black Michael Kors Hamilton On Tropical Pattern Because if there has been inadequate numbers solutions with...
  11. renlewei reblogged this from oscommerce and added:
    Vibram FiveFingers 2011 Speed shoes offer casual, sporty appeal thanks to a classic look and lace-up design, all aboard...
  12. bestlpatops reblogged this from oscommerce
  13. laptoplpaz reblogged this from oscommerce
  14. iconsolidateln reblogged this from oscommerce
  15. raspberry-ketone-supplements reblogged this from oscommerce
  16. modernlivingroomfurniture reblogged this from oscommerce
  17. debconsolasierz reblogged this from oscommerce
  18. mid-length-hairstyles reblogged this from oscommerce
  19. auto-insurance-in-michigan reblogged this from haraldpdl
  20. auto-insurance-in-michigan reblogged this from oscommerce
  21. telsiz-kiralama reblogged this from oscommerce
  22. cheapflightsinindia reblogged this from oscommerce
  23. cheapflightsinindia reblogged this from oscommerce
  24. anunturi-gratuite-16 reblogged this from haraldpdl
  25. digitalkamera-test-2012 reblogged this from haraldpdl
  26. puzzle-games-online-free reblogged this from haraldpdl
  27. hotel-insurance reblogged this from oscommerce