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!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0001142 [In-Portal CMS] Data Management bug report always 2011-10-17 05:05 2012-07-25 05:32
Reporter phil View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0001142: Images are deleted during link approval process
Description There are 2 category permissions:
* LINK.OWNER.MODIFY - changes, user makes to it's link are immediately seen on Front-End
* LINK.OWNER.MODIFY.PENDING - changes, user makes to it's link are stored in another link record for admin to approve/decline

When user has LINK.OWNER.MODIFY permission it works, like a charm. However, there are a problems in creating a link, that contains all changes made by user.

All files are copied normally. Images are also copied on disk (e.g. image_one.jpg will be copied to image_one_1.jpg), but original image filename stays in link record.

This way approving a link will delete all it's images from disk keeping broken records in Images table.

Since images are copied at least, then I suppose it's working partially. Then we need to ensure, that copied image filenames are put back into Images table record associated with the link, that will hold all modifications.

What to fix:
1. Place approved link ResourceId into Listings db table (link enhancements) & Relationship db table (link relationships) instead of original link (link before change) ResourceId (remember ResourceId before deleting original link).

2. make sure, that copied image filenames are listed in "link to be approved" database record (instead of original link image filenames).

3. remove "_1" (or any "_[\d]+$") from approved link image filenames (when this way fixed filename won't match to any existing filename in same folder), once link was approved.
Additional Information Another small problem here - such links (that needed to be approved) have broken icon in catalog. They should have Pending icon I suppose.

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

Powered by Mantis Bugtracker