In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Advanced Details Jump to Notes ] Wiki ]  Related Changesets ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000482 [In-Portal CMS] Front End feature request N/A 2009-12-23 03:12 2010-07-22 15:06
Reporter BaSSiST View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.1.0-B1 Product Version 5.0.2-B1
  Target Version 5.1.0 Product Build
Time EstimateNo estimate
Summary 0000482: Automatic folder creation under "/system" folder
Description To be able to upload something it's required to create target folder (once per field) and "/resized" subfolder under it and set proper write permissions on them. Then created folder name should be specified in corresponding field declaration in unit config. This is potential place for typing errors, because developer could:

    * create one folder and then specify other folder name in unit config;
    * forgot to create folder or set correct permissions when deploying site on production/development server.

This is why automatic folder creation could speed-up development. Buy applying proposed approach (patch) we could gain advantages mentioned below:

    * eliminate potential error source;
    * automate process and increment development efficiency.


Proposed patch is just a start for automatic folder creation. For example folder creation code could be moved to central place, like FileHelper and used, when needed.
Steps To Reproduce
Additional Information
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-dev/browse_thread/thread/d3d46d605743a01b?hl=en
Change Log Message
Estimate Points 0
Attached Files patch file icon automatic_upload_folder_creation.patch [^] (3,252 bytes) 2009-12-23 03:12 [Show Content]
patch file icon folder_auto_creation_core.patch [^] (13,555 bytes) 2010-05-12 07:17 [Show Content]
patch file icon folder_auto_creation_modules.patch [^] (6,164 bytes) 2010-05-12 07:17 [Show Content]
rar file icon system.rar [^] (62,925 bytes) 2010-05-12 07:17

- Relationships Relation Graph ] Dependency Graph ]
has duplicate 0000081closed (5.1.0)alex Creating folders in writeable "/system" folder 

-  Notes
User avatar (0001935)
Dmitry (manager)
2010-04-25 17:38

Tested good!
User avatar (0002197)
alex (manager)
2010-05-12 07:18

Not completely done.
User avatar (0002198)
alex (manager)
2010-05-12 07:19

Now done.

Latest 2 patches are correct ones. I also propose to delete almost all empty folders under "/system" folder (new folder structure is attached in "system.rar"), since they will be automatically created when needed.

Test plan:
1. restore backup (when no backups are created) - creates "/system/backupdata"
2. create backup and then restore it - creates "/system/backupdata"
3. test upload in each possible place, where kUploadFormatter is used
4. perform import/export of links/products - creates "/system/export"
5. product/link import screen verify that already uploaded dropdown is prefilled properly - creates "/system/export"
6. upload manufacturer image - creates "/system/images/manufacturers"
7. create test template to display all manufacturers with scaled images on Front-End - creates "/system/images/manufacturers/resized"
8. upload image for any category item - creates "/system/images/pending/resized"
9. view uploaded images on category item details page - creates "/system/images/resized"
10. create poll with images - creates "/system/images/polls"
11. view poll on front-end - creates "/system/images/polls/resized"
12. open file browser in fck editor (any place) - creates "/system/user_files/Documents", "/system/user_files/Files", "/system/user_files/Flash", "/system/user_files/Media", "/system/user_files/Images"
13. respond to user for submission + add attachment in response - creates "/system/user_files/submission_log"
14. make successful USPS label request - creates "/system/user_files/labels"
15. install no longer requires deleted directories to be writable
16. csv export
17. language pack import/export
User avatar (0002218)
Dmitry (manager)
2010-05-16 23:09

Tested good, please commit!
User avatar (0002231)
alex (manager)
2010-05-18 10:25

Fix committed to 5.1.x branch. Commit Message:

Fixes 0000482: Automatic folder creation under "/system" folder
User avatar (0002529)
alex (manager)
2010-07-22 15:06

Closing, since 5.1.0 release has been released.

- Related Changesets
In-Portal CMS: 5.1.x r13571
Timestamp: 2010-05-18 10:34:20
Author: alex
Details ] Diff ]
1. Bug 0000482: Automatic folder creation under "/system" folder
2. Ignore (on commit) all folders created under "/system" folder.
mod - /in-portal/branches/5.1.x/system Diff ] File ]
In-Portal CMS: 5.1.x r13570
Timestamp: 2010-05-18 10:31:38
Author: alex
Details ] Diff ]
1. Bug 0000482: Automatic folder creation under "/system" folder
2. Ignore (on commit) all folders created under "/system" folder.
mod - /in-portal/branches/5.1.x/system Diff ] File ]
In-Portal CMS: 5.1.x r13569
Timestamp: 2010-05-18 10:25:01
Author: alex
Details ] Diff ]
Fixes 0000482: Automatic folder creation under "/system" folder
mod - /in-portal/branches/5.1.x/core/admin_templates/tools/backup1.tpl Diff ] File ]
mod - /in-portal/branches/5.1.x/core/install.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/db/db_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/utility/formatters/upload_formatter.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/admin/admin_events_handler.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/admin/admin_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/configuration/configuration_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/cat_dbitem_export_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/csv_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/file_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/image_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/languages/languages_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/stylesheets/stylesheets_item.php Diff ] File ]
rm - /in-portal/branches/5.1.x/system/backupdata
rm - /in-portal/branches/5.1.x/system/downloads
rm - /in-portal/branches/5.1.x/system/export
rm - /in-portal/branches/5.1.x/system/images/manufacturers
rm - /in-portal/branches/5.1.x/system/images/pending/resized
rm - /in-portal/branches/5.1.x/system/images/polls
rm - /in-portal/branches/5.1.x/system/images/resized
rm - /in-portal/branches/5.1.x/system/import
rm - /in-portal/branches/5.1.x/system/stylesheets
rm - /in-portal/branches/5.1.x/system/user_files/Images
rm - /in-portal/branches/5.1.x/system/user_files/labels
rm - /in-portal/branches/5.1.x/system/user_files/submission_log
Modules :: In-News: 5.1.x r13568
Timestamp: 2010-05-18 10:17:40
Author: alex
Details ] Diff ]
Bug 0000482: Automatic folder creation under "/system" folder
mod - /modules/in-news/branches/5.1.x/units/articles/articles_config.php Diff ] File ]
Modules :: In-Link: 5.1.x r13567
Timestamp: 2010-05-18 10:17:25
Author: alex
Details ] Diff ]
Bug 0000482: Automatic folder creation under "/system" folder
mod - /modules/in-link/branches/5.1.x/units/links/links_config.php Diff ] File ]
Modules :: In-Commerce: 5.1.x r13566
Timestamp: 2010-05-18 10:17:11
Author: alex
Details ] Diff ]
Bug 0000482: Automatic folder creation under "/system" folder
mod - /w/in-commerce/branches/5.1.x/units/orders/orders_event_handler.php Diff ] File ]
mod - /w/in-commerce/branches/5.1.x/units/products/products_config.php Diff ] File ]
mod - /w/in-commerce/branches/5.1.x/units/shipping_quote_engines/usps.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-07-22 15:06 alex Note Added: 0002529
2010-07-22 15:06 alex Status resolved => closed
2010-06-08 22:43 Dmitry Relationship added has duplicate 0000081
2010-05-18 10:34 alex Changeset attached 5.1.x r13571
2010-05-18 10:31 alex Changeset attached 5.1.x r13570
2010-05-18 10:25 alex Note Added: 0002231
2010-05-18 10:25 alex Status reviewed and tested => resolved
2010-05-18 10:25 alex Fixed in Version => 5.1.0-B1
2010-05-18 10:25 alex Resolution open => fixed
2010-05-18 10:25 alex Changeset attached 5.1.x r13569
2010-05-18 10:17 alex Changeset attached 5.1.x r13568
2010-05-18 10:17 alex Changeset attached 5.1.x r13567
2010-05-18 10:17 alex Changeset attached 5.1.x r13566
2010-05-16 23:09 Dmitry Note Added: 0002218
2010-05-16 23:09 Dmitry Assigned To !COMMUNITY => alex
2010-05-16 23:09 Dmitry Status needs testing => reviewed and tested
2010-05-12 07:19 alex Note Added: 0002198
2010-05-12 07:19 alex Assigned To alex => !COMMUNITY
2010-05-12 07:19 alex Developer BaSSiST => alex
2010-05-12 07:19 alex Status needs work => needs testing
2010-05-12 07:18 alex Note Added: 0002197
2010-05-12 07:18 alex Assigned To !COMMUNITY => alex
2010-05-12 07:18 alex Status reviewed and tested => needs work
2010-05-12 07:17 alex File Added: system.rar
2010-05-12 07:17 alex File Added: folder_auto_creation_modules.patch
2010-05-12 07:17 alex File Added: folder_auto_creation_core.patch
2010-04-25 17:38 Dmitry Time Estimate Removed 1 =>
2010-04-25 17:38 Dmitry Note Added: 0001935
2010-04-25 17:38 Dmitry Status needs testing => reviewed and tested
2010-02-27 04:07 alex Developer => BaSSiST
2010-01-12 11:11 alex Time Estimate Added 1
2010-01-12 10:47 alex Target Version Icebox => 5.1.0
2009-12-23 03:12 alex Assigned To => !COMMUNITY
2009-12-23 03:12 alex Status active => needs testing
2009-12-23 03:12 alex Reporter alex => BaSSiST
2009-12-23 03:12 alex Target Version => Icebox
2009-12-23 03:12 alex New Issue
2009-12-23 03:12 alex File Added: automatic_upload_folder_creation.patch
2009-12-23 03:12 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/d3d46d605743a01b?hl=en



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker