Bug 794359

Summary: Add a function to completely hide a page using check-box and date-control
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: PortalAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact: Martin Vecera <mvecera>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bdawidow, epp-bugs, jpallich, ppalaga, tkobayas, tkyjovsk
Target Milestone: DR01   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1403
Whiteboard: 6_2 In_Progress
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, page authors could not restrict access to a page even if the page was not published. Setting a publication date was possible, but may have given the impression that the page was not accessible if it was not published. The fix adds an option "Hide page when outside publishing window" to the "create page wizard", which allows authors to restrict access to the page based on publishing time. This feature is documented in the "Add a New Page using the Page Creation Wizard" section of the User Guide.
Story Points: ---
Clone Of: JBEPP-1403 Environment:
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Form - New field - Access restricted before publishing date
none
Page - Access restricted before publishing date
none
Form - New field - Access allowed before publishing date
none
Page - Access allowed before publishing date
none
Form - New field - Access restricted after publishing date
none
Page - Access restricted after publishing date
none
Form - New field - Access allowed after publishing date
none
Page - Access allowed after publishing date none

Description Toshiya Kobayashi 2011-11-28 05:16:07 UTC
++ This bug is a clone of bug 794358 ++

Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007pmle&sfdc.override=1
project_key: JBEPP

A platform JIRA for GTNPORTAL-2295 [Add a function to completely hide a page using check-box and date-control]

As mentioned in GTNPORTAL-2033/JBEPP-1096, "Visible" and "Publication date" are effective only for Navigation. Pages are still accessible via direct URL access, such as http://localhost:8080/portal/private/classic/pagename

GTNPORTAL-2033/JBEPP-1096 is for a documentation fix because it is an expected behaviour and the document should mention the limitation.

This JIRA is raised for a feature request to implement the function to completely hide a page from users. It may be going to add some capability to "Visible" and "Publication date" feature.

Comment 1 Toshiya Kobayashi 2011-11-28 05:17:03 UTC
Link: Added: This issue relates to JBEPP-1096


Comment 2 Toshiya Kobayashi 2011-11-28 05:18:12 UTC
Link: Added: This issue incorporates GTNPORTAL-2295


Comment 4 Thomas Heute 2011-12-15 10:28:11 UTC
Labels: Added: EPP_6_0_0_Candidate


Comment 5 Thomas Heute 2012-09-03 11:43:06 UTC
*** Bug 794358 has been marked as a duplicate of this bug. ***

Comment 8 Juraci Paixão Kröhling 2014-01-21 10:20:44 UTC
Ok, so, there's a proposed implementation on https://github.com/jpkrohling/gatein-portal/compare/BZ794359-HidePageIfPublicationDateInFuture-Take2

This proposal adds a new checkbox to the set of fields related to the publishing date, named "". 

When this checkbox is marked and the current time is outside of the window of the publication date (ie: before the start publication date, or after the end publication date), an user that knows the URL of this page will be redirected to the parent node. Additionally, a message will be shown to the user, saying that the page is not available yet (or has expired). 

There's no change in the current behavior, as in, nodes marked as "not visible" will still be available for users knowing the URL, as well as nodes which are not published. This is to prevent problems with backwards compatibility, ie, administrators today might be taking advantage of this "bug" (for instance, when they don't want a page to show up in a navigation, but the page is linked from inside a document). 

I'm attaching a few screenshots, to demonstrate the change. If this is an acceptable solution, the code will be merged once it gets reviewed.

Comment 9 Juraci Paixão Kröhling 2014-01-21 10:22:02 UTC
Created attachment 853092 [details]
Form - New field - Access restricted before publishing date

Comment 10 Juraci Paixão Kröhling 2014-01-21 10:22:30 UTC
Created attachment 853094 [details]
Page - Access restricted before publishing date

Comment 11 Juraci Paixão Kröhling 2014-01-21 10:23:10 UTC
Created attachment 853095 [details]
Form - New field - Access allowed before publishing date

Comment 12 Juraci Paixão Kröhling 2014-01-21 10:23:52 UTC
Created attachment 853098 [details]
Page - Access allowed before publishing date

Comment 13 Juraci Paixão Kröhling 2014-01-21 10:24:38 UTC
Created attachment 853099 [details]
Form - New field - Access restricted after publishing date

Comment 14 Juraci Paixão Kröhling 2014-01-21 10:25:05 UTC
Created attachment 853101 [details]
Page - Access restricted after publishing date

Comment 15 Juraci Paixão Kröhling 2014-01-21 10:25:37 UTC
Created attachment 853102 [details]
Form - New field - Access allowed after publishing date

Comment 16 Juraci Paixão Kröhling 2014-01-21 10:26:06 UTC
Created attachment 853103 [details]
Page - Access allowed after publishing date

Comment 17 Juraci Paixão Kröhling 2014-01-23 16:03:47 UTC
Status: the feature is being discussed on gatein-dev . 
Next steps: get a code review done, send pull-request, get it merged into master.

Comment 18 Juraci Paixão Kröhling 2014-02-24 14:09:50 UTC
Pull Request sent: https://github.com/gatein/gatein-portal/pull/788

Comment 19 Peter Palaga 2014-03-11 11:31:25 UTC
The above PR was merged in upstream.

Comment 20 Jared MORGAN 2014-06-16 01:42:59 UTC
(In reply to Juraci Paixao Krohling from comment #8)
> Ok, so, there's a proposed implementation on
> https://github.com/jpkrohling/gatein-portal/compare/BZ794359-
> HidePageIfPublicationDateInFuture-Take2
> 
> This proposal adds a new checkbox to the set of fields related to the
> publishing date, named "". 
> 
> When this checkbox is marked and the current time is outside of the window
> of the publication date (ie: before the start publication date, or after the
> end publication date), an user that knows the URL of this page will be
> redirected to the parent node. Additionally, a message will be shown to the
> user, saying that the page is not available yet (or has expired). 
> 
> There's no change in the current behavior, as in, nodes marked as "not
> visible" will still be available for users knowing the URL, as well as nodes
> which are not published. This is to prevent problems with backwards
> compatibility, ie, administrators today might be taking advantage of this
> "bug" (for instance, when they don't want a page to show up in a navigation,
> but the page is linked from inside a document). 
> 
> I'm attaching a few screenshots, to demonstrate the change. If this is an
> acceptable solution, the code will be merged once it gets reviewed.

Thanks for the description there, Juca.

I've made the changes in the User Guide here: http://docbuilder.usersys.redhat.com/22545/remarks/#Adding_a_new_Page_using_Page_Creation_Wizard

Search for "BZ#794359" to find the changes relating to this ticket.

I need to get a new, blank screenshot for the procedure. Asking for test portals in sme-portal for this, or I'll just spin up an ER build of 6.2 to get the screen.