In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1050 [In-Portal CMS] Data Management feature request always 2011-05-04 21:23 2012-07-25 05:33
Dmitry  
!COMMUNITY  
normal  
closed 5.1.2  
fixed  
 
none 5.2.0-B1  
https://groups.google.com/d/topic/in-portal-dev/fg0b2dlhPLY/discussion
Ability to access disabled section with direct link
1
0001050: Ability to access Disabled Section with Direct Link
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.
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
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 
patch direct_page_link_feature.patch (10,758) 2011-07-13 04:18
http://tracker.in-portal.org/file_download.php?file_id=1070&type=bug
patch direct_page_link_feature_for_520.patch (10,838) 2011-07-13 12:28
http://tracker.in-portal.org/file_download.php?file_id=1074&type=bug
png Access-WithLink-URL-2011-07-22_1441.png (135,333) 2011-07-22 14:44
http://tracker.in-portal.org/file_download.php?file_id=1083&type=bug
png

patch keep_section_properties_link_clean.patch (576) 2011-07-25 08:01
http://tracker.in-portal.org/file_download.php?file_id=1084&type=bug
Issue History
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

Notes
(0003627)
alex   
2011-07-13 04:20   
Patch was created based on In-Portal 5.1.3.
(0003632)
Dmitry   
2011-07-13 11:25   
Tested good on Intechnic.com
(0003633)
alex   
2011-07-13 12:28   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001050: Ability to access Disabled Section with Direct Link
(0003640)
Dmitry   
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.
(0003641)
alex   
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.
(0003727)
Dmitry   
2011-09-11 20:45   
Reviewed and tested good, please commit!
(0003873)
alex   
2011-09-20 11:27   
Fix in another task.
(0005079)
alex   
2012-07-25 05:33   
Since 5.2.0 version was released.