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 ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001050 [In-Portal CMS] Data Management feature request always 2011-05-04 21:23 2012-07-25 05:33
Reporter Dmitry View Status public Project Name In-Portal CMS
Assigned To !COMMUNITY Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.2.0-B1 Product Version 5.1.2
  Target Version 5.2.0 Product Build
Time EstimateNo estimate
Summary 0001050: Ability to access Disabled Section with Direct Link
Description Often these days we need to have an ability to access a disabled Section or Category Item on the Front-end without having it shown in the list among other Enabled Sections or Category Items.

There is a beautiful solution that Google Picasa has for this - Direct URL which contains some "key" for authenticating the user and showing him hidden by default content.

Example:

https://picasaweb.google.com/dandrejev/MaksikGitara?authkey=Gv1sRgCJeZqfiPxL271

I propose we implement the same for Section (later for Category Items).

Interface:

1. If Status is Pending or Disabled we show a new "Access with Link" field right after (below) that Status field
2. New "Access with Link" field will have a Check-box (enabled by default) and a Label field (which can be copied) with full URL to that Section.

Functionality:

1. We would need to have 2 new DB fields ( in Categories table (and later for Category Items) to store the Status and the Authentication Key. I suggest calling them as AllowAccessWithLink and AuthKey, but I am insisting on these names.

2. Let's use some random Alpha-numeric (case sensitive) algorithms (nothing fancy) to generate (automatically) and save this keys. Keys will NOT change! Suggested length 15-20 chars.

3. One of hard questions is - which of the URLs to show:
a. with ModRewrite or without - I believe it should be based on current website settings
b. which language - default one for Front-end

4. Need to make sure if In-Portal performs a URL redirect due to forcing the HTML URL when user visits without one we need to keep AuthKey in URL as well.
Steps To Reproduce
Additional Information From technical viewpoint it will be pretty easy to implement:

1. create 2 fields in a Category table: DirectLinkEnabled (Yes/No) and DirectLinkAuthKey

2. when someone enables direct link functionality (on category/section editing page), then:
- random alpha-numeric string will be generated and stored in category/section record
- link to that page with freshly generated authentication key will be displayed

3. in checkItemStatus method (where check is made to prevent viewing Pending/Disabled categories/sections) also check is authentication key is present in url and it matches one from current category/section record

4. if all matches, then show category/section and don't redirect to "no permission" page as usual in this case
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/fg0b2dlhPLY/discussion
Change Log Message Ability to access disabled section with direct link
Estimate Points 1
Attached Files patch file icon direct_page_link_feature.patch [^] (10,758 bytes) 2011-07-13 04:18 [Show Content]
patch file icon direct_page_link_feature_for_520.patch [^] (10,838 bytes) 2011-07-13 12:28 [Show Content]
png file icon Access-WithLink-URL-2011-07-22_1441.png [^] (135,333 bytes) 2011-07-22 14:44


patch file icon keep_section_properties_link_clean.patch [^] (576 bytes) 2011-07-25 08:01 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0001056closed (5.1.3)alex No way to open disabled page from Admin Console 
parent of 0001098closed (5.1.3)alex Parameters "editing_mode" and "admin" are passed to page editing form by mistake 
parent of 0001311closed (5.2.0)alex Wrong domain used in direct access links 
related to 0001097closed (5.1.3)alex Wrong sub-menu is displayed on a disabled pages 
related to 0001201closed (5.2.0)alex Fatal error during Installation on States import with MySQL in Strict Mode 

-  Notes
User avatar (0003627)
alex (manager)
2011-07-13 04:20

Patch was created based on In-Portal 5.1.3.
User avatar (0003632)
Dmitry (manager)
2011-07-13 11:25

Tested good on Intechnic.com
User avatar (0003633)
alex (manager)
2011-07-13 12:28

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001050: Ability to access Disabled Section with Direct Link
User avatar (0003640)
Dmitry (manager)
2011-07-22 14:46

Looks like I have found a bug in this functionality.

Access URL gets some junk (ie. admin=1 and so on) if Section is accessed via Content Mode (clicked Section Properties) see "Access-WithLink-URL-2011-07-22_1441.png".

Not major issue, but needs to be fixed.
User avatar (0003641)
alex (manager)
2011-07-25 08:02

Patch "keep_section_properties_link_clean.patch" solves described issue.

I've create separate patch, since it's more general problem, that "admin=1&editing_mode=" is passed in category editing page.
User avatar (0003727)
Dmitry (manager)
2011-09-11 20:45

Reviewed and tested good, please commit!
User avatar (0003873)
alex (manager)
2011-09-20 11:27

Fix in another task.
User avatar (0005079)
alex (manager)
2012-07-25 05:33

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14474
Timestamp: 2011-07-13 12:28:58
Author: alex
Details ] Diff ]
Fixes 0001050: Ability to access Disabled Section with Direct Link
mod - /in-portal/branches/5.2.x/admin/system_presets/simple/categories_c.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/admin_templates/categories/categories_edit.tpl Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/english.lang Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/install_schema.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/upgrades.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/structure/structure_config.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-25 05:33 alex Note Added: 0005079
2012-07-25 05:33 alex Status resolved => closed
2012-06-11 06:41 alex Relationship added parent of 0001311
2012-02-06 04:06 alex Relationship added related to 0001201
2011-10-22 05:40 alex Estimate Points => 1
2011-09-20 11:27 alex Note Added: 0003873
2011-09-20 11:27 alex Status reviewed and tested => resolved
2011-09-20 11:27 alex Resolution reopened => fixed
2011-09-11 20:45 Dmitry Note Added: 0003727
2011-09-11 20:45 Dmitry Status needs testing => reviewed and tested
2011-08-17 03:55 alex Relationship added parent of 0001098
2011-08-17 03:46 alex Relationship added related to 0001097
2011-07-25 08:02 alex Note Added: 0003641
2011-07-25 08:02 alex Assigned To alex => !COMMUNITY
2011-07-25 08:02 alex Status needs work => needs testing
2011-07-25 08:01 alex File Added: keep_section_properties_link_clean.patch
2011-07-22 14:46 Dmitry Status needs feedback => needs work
2011-07-22 14:46 Dmitry Note Added: 0003640
2011-07-22 14:46 Dmitry Status resolved => needs feedback
2011-07-22 14:46 Dmitry Resolution fixed => reopened
2011-07-22 14:44 Dmitry File Added: Access-WithLink-URL-2011-07-22_1441.png
2011-07-13 12:28 alex Note Added: 0003633
2011-07-13 12:28 alex Status reviewed and tested => resolved
2011-07-13 12:28 alex Fixed in Version => 5.2.0-B1
2011-07-13 12:28 alex Resolution open => fixed
2011-07-13 12:28 alex Assigned To !COMMUNITY => alex
2011-07-13 12:28 alex Changeset attached 5.2.x r14474
2011-07-13 12:28 alex File Added: direct_page_link_feature_for_520.patch
2011-07-13 12:25 alex Relationship added parent of 0001056
2011-07-13 11:25 Dmitry Note Added: 0003632
2011-07-13 11:25 Dmitry Status needs testing => reviewed and tested
2011-07-13 04:20 alex Assigned To => !COMMUNITY
2011-07-13 04:20 alex Developer => alex
2011-07-13 04:20 alex Status active => needs testing
2011-07-13 04:20 alex Note Added: 0003627
2011-07-13 04:20 alex Target Version Icebox => 5.2.0
2011-07-13 04:18 alex File Added: direct_page_link_feature.patch
2011-05-04 21:23 Dmitry New Issue
2011-05-04 21:23 Dmitry Reference => https://groups.google.com/d/topic/in-portal-dev/fg0b2dlhPLY/discussion
2011-05-04 21:23 Dmitry Change Log Message => Ability to access disabled section with direct link



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

Powered by Mantis Bugtracker