Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 794359 - Add a function to completely hide a page using check-box and date-control
Add a function to completely hide a page using check-box and date-control
Status: VERIFIED
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal (Show other bugs)
unspecified
Unspecified Unspecified
high Severity high
: DR01
: 6.2.0
Assigned To: Juraci Paixão Kröhling
Martin Vecera
http://jira.jboss.org/jira/browse/JBE...
6_2 In_Progress
:
: JBEPP-1403 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-28 00:16 EST by Toshiya Kobayashi
Modified: 2018-01-29 20:42 EST (History)
7 users (show)

See Also:
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: ---


Attachments (Terms of Use)
Form - New field - Access restricted before publishing date (50.19 KB, image/png)
2014-01-21 05:22 EST, Juraci Paixão Kröhling
no flags Details
Page - Access restricted before publishing date (136.38 KB, image/png)
2014-01-21 05:22 EST, Juraci Paixão Kröhling
no flags Details
Form - New field - Access allowed before publishing date (52.18 KB, image/png)
2014-01-21 05:23 EST, Juraci Paixão Kröhling
no flags Details
Page - Access allowed before publishing date (51.89 KB, image/png)
2014-01-21 05:23 EST, Juraci Paixão Kröhling
no flags Details
Form - New field - Access restricted after publishing date (41.36 KB, image/png)
2014-01-21 05:24 EST, Juraci Paixão Kröhling
no flags Details
Page - Access restricted after publishing date (37.36 KB, image/png)
2014-01-21 05:25 EST, Juraci Paixão Kröhling
no flags Details
Form - New field - Access allowed after publishing date (53.32 KB, image/png)
2014-01-21 05:25 EST, Juraci Paixão Kröhling
no flags Details
Page - Access allowed after publishing date (57.30 KB, image/png)
2014-01-21 05:26 EST, Juraci Paixão Kröhling
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker GTNPORTAL-3370 Major Resolved Add a function to completely hide a page using check-box and date-control 2016-12-06 11:16 EST
JBoss Issue Tracker JBEPP-1403 Major Closed Add a function to completely hide a page using check-box and date-control 2016-12-06 11:16 EST

  None (edit)
Description Toshiya Kobayashi 2011-11-28 00:16:07 EST
++ 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 00:17:03 EST
Link: Added: This issue relates to JBEPP-1096
Comment 2 Toshiya Kobayashi 2011-11-28 00:18:12 EST
Link: Added: This issue incorporates GTNPORTAL-2295
Comment 4 Thomas Heute 2011-12-15 05:28:11 EST
Labels: Added: EPP_6_0_0_Candidate
Comment 5 Thomas Heute 2012-09-03 07:43:06 EDT
*** Bug 794358 has been marked as a duplicate of this bug. ***
Comment 8 Juraci Paixão Kröhling 2014-01-21 05:20:44 EST
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 05:22:02 EST
Created attachment 853092 [details]
Form - New field - Access restricted before publishing date
Comment 10 Juraci Paixão Kröhling 2014-01-21 05:22:30 EST
Created attachment 853094 [details]
Page - Access restricted before publishing date
Comment 11 Juraci Paixão Kröhling 2014-01-21 05:23:10 EST
Created attachment 853095 [details]
Form - New field - Access allowed before publishing date
Comment 12 Juraci Paixão Kröhling 2014-01-21 05:23:52 EST
Created attachment 853098 [details]
Page - Access allowed before publishing date
Comment 13 Juraci Paixão Kröhling 2014-01-21 05:24:38 EST
Created attachment 853099 [details]
Form - New field - Access restricted after publishing date
Comment 14 Juraci Paixão Kröhling 2014-01-21 05:25:05 EST
Created attachment 853101 [details]
Page - Access restricted after publishing date
Comment 15 Juraci Paixão Kröhling 2014-01-21 05:25:37 EST
Created attachment 853102 [details]
Form - New field - Access allowed after publishing date
Comment 16 Juraci Paixão Kröhling 2014-01-21 05:26:06 EST
Created attachment 853103 [details]
Page - Access allowed after publishing date
Comment 17 Juraci Paixão Kröhling 2014-01-23 11:03:47 EST
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 09:09:50 EST
Pull Request sent: https://github.com/gatein/gatein-portal/pull/788
Comment 19 Peter Palaga 2014-03-11 07:31:25 EDT
The above PR was merged in upstream.
Comment 20 Jared MORGAN 2014-06-15 21:42:59 EDT
(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.

Note You need to log in before you can comment on or make changes to this bug.