Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #18156 Invalid input leads to data loss
Submitted: 2010-12-29 04:25 UTC
From: cweiske Assigned:
Status: Open Package: PEAR_PackageFileManager_Cli (version 0.3.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-12-29 04:25 UTC] cweiske (Christian Weiske)
Description: ------------ When writing invalid values, i.e. a invalid package name, writing the package file will error out and exit the tool. This makes all the hard configuration work I did before void, and I have to do it all again. Test script: --------------- cweiske:~/Dev/tools/linksys-wrt3g-tools> pfm PEAR Package File Manager Command Line Tool Please enter the location of your package [.]*: Creating a new package file ... Enter the base install directory*: Enter the base install directory*: / Enter the name of the package [linksys-wrt3g-tools]*: Channel or URI based package? [c] (c,u)*: Enter the name of the channel [pear.php.net]*: zustellzentrum.cweiske.de Enter a 1 line summary*: Tools to retrieve status information from a WRT3G Linksys router Enter a description* (2 blank lines to finish): Tools to retrieve status information from a WRT3G Linksys router, reboot it and a munin plugin to track the connection state. Enter the release version*: 1.0.0 Enter the API version [1.0.0]*: Choose a release stability [alpha] (alpha,beta,stable)*: stable Choose an API stability [stable] (alpha,beta,stable)*: Enter any release notes* (2 blank lines to finish): First pear-packaged version Enter the minimum PHP version [5]*: 5.2.0 Enter the minimum PEAR Installer version [1.4.0]*: 1.9.1 Please choose a license from one of the following options 1) Apache 2) BSD Style 3) LGPL 4) MIT 5) PHP Please choose an option: 3 How many maintainers?*: 1 What type of maintainer is #1? [lead] (lead,developer,contributor,helper)*: Enter maintainer #1's name*: Christian Weiske Enter maintainer #1's username*: cweiske Enter maintainer #1's email [cweiske@php.net]*: cweiske@cweiske.de PEAR Package File Manager Command Line Tool 1. Package name [linksys-wrt3g-tools] 2. Channel/URI [Channel: zustellzentrum.cweiske.de] 3. Summary [Tools to retrieve status information ...] 4. Description [Tools to retrieve status information ...] 5. Maintainers 6. Version [Release: 1.0.0 API: 1.0.0] 7. Stability [Release: stable API: stable] 8. License [LGPL] 9. Notes [First pear-packaged version] 10. Dependencies 11. Tasks 12. Regenerate contents 13. Echo package file to stdout 14. Save & Quit 15. Quit without saving (ctrl-c) Please choose an option from the menu: 10 Edit Dependencies 1. Return to main menu 2. Add new dependency 3. Clear all dependencies 4. Change PHP >= 5.2.0 5. Change PEAR Installer >= 1.9.1 Dependencies: Please choose an option from the menu: 1 PEAR Package File Manager Command Line Tool 1. Package name [linksys-wrt3g-tools] 2. Channel/URI [Channel: zustellzentrum.cweiske.de] 3. Summary [Tools to retrieve status information ...] 4. Description [Tools to retrieve status information ...] 5. Maintainers 6. Version [Release: 1.0.0 API: 1.0.0] 7. Stability [Release: stable API: stable] 8. License [LGPL] 9. Notes [First pear-packaged version] 10. Dependencies 11. Tasks 12. Regenerate contents 13. Echo package file to stdout 14. Save & Quit 15. Quit without saving (ctrl-c) Please choose an option from the menu: 10 Edit Dependencies 1. Return to main menu 2. Add new dependency 3. Clear all dependencies 4. Change PHP >= 5.2.0 5. Change PEAR Installer >= 1.9.1 Dependencies: Please choose an option from the menu: 2 Dependency type [pkg] (pkg,ext,php,prog,os,sapi,zend)*: Dependency name*: Config Is the dependency (o)ptional or (r)equired [r] (o,r)*: Package type (c)hannel or (u)ri [c] (c,u)*: Dependency channel [pear.php.net]*: Minimum version: 1.10.12 Maximum version: Edit Dependencies 1. Return to main menu 2. Add new dependency 3. Clear all dependencies 4. Change PHP >= 5.2.0 5. Change PEAR Installer >= 1.9.1 Dependencies: Required Package dependency "Config" - pear.php.net Please choose an option from the menu: 2 Dependency type [pkg] (pkg,ext,php,prog,os,sapi,zend)*: Dependency name*: System_Folders Is the dependency (o)ptional or (r)equired [r] (o,r)*: Package type (c)hannel or (u)ri [c] (c,u)*: Dependency channel [pear.php.net]*: Minimum version: 1.0.3 Maximum version: Edit Dependencies 1. Return to main menu 2. Add new dependency 3. Clear all dependencies 4. Change PHP >= 5.2.0 5. Change PEAR Installer >= 1.9.1 Dependencies: Required Package dependency "Config" - pear.php.net Required Package dependency "System_Folders" - pear.php.net Please choose an option from the menu: 1 PEAR Package File Manager Command Line Tool 1. Package name [linksys-wrt3g-tools] 2. Channel/URI [Channel: zustellzentrum.cweiske.de] 3. Summary [Tools to retrieve status information ...] 4. Description [Tools to retrieve status information ...] 5. Maintainers 6. Version [Release: 1.0.0 API: 1.0.0] 7. Stability [Release: stable API: stable] 8. License [LGPL] 9. Notes [First pear-packaged version] 10. Dependencies 11. Tasks 12. Regenerate contents 13. Echo package file to stdout 14. Save & Quit 15. Quit without saving (ctrl-c) Please choose an option from the menu: 14 PEAR_PackageFileManager2 Error: Package validation failed: Error: Channel validator error: field "name" - package name "linksys-wrt3g-tools" is invalid

Comments