Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
PUBLIC - Liferay Portal Community Edition
  • PUBLIC - Liferay Portal Community Edition
  • LPS-29297 Web content versioning and expiration...
  • LPS-29304

You can't set Expiration date for web content older than NOW

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Technical task Technical task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
  • Fix Version/s: 6.1.X EE, 6.2.0 CE M2
  • Component/s: WCM, WCM > Web Content Administration
  • Labels:
    • QA-R
    • bugsquad
    • community-verifier
    • usability
  • Branch Version/s:
    6.1.x
  • Backported to Branch:
    Committed
  • Business Value:
    3
  • Similar Issues:
    Show 5 results 

    LPS-12335The "Expiration Date" and "Review Date" of a Web Content / Poll do not get activated until you Save the Web Content / Poll.
    LPS-6109Can't delete a web content once it is expired
    LPS-18863Web Content expires although it shouldn't
    LPS-6961Can't Delete Expired Web Content
    LPS-18795Web Content Expiration Date default is set to January 1, 1970 after clicking Edit

Description

  1. go to web content edition page
  2. go to Schedule section
  3. uncheck "Never Auto-expire" checkbox
  4. set Expiration date to somewhere between Display Date and current date and time.
  5. Press Publish button
  6. Edit that web content again and go to Schedule section

Effect: "never Auto-expire" is still checked despite the fact that there was no warning window, no error message nor exception in console. There is nothing wrong in setting date from past but it seems Liferay decides for user what is good and what is wrong without telling him that. Also this behaviour is not documented anywhere so possibly this is a bug.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
Hide
Permalink
Sergio Gonzalez added a comment - 02/Oct/12 7:24 AM

Juan is going to take a look at the logic in JournalArticleLocalServiceImpl:

if (status == WorkflowConstants.STATUS_APPROVED) {
Date expirationDate = article.getExpirationDate();

if ((expirationDate != null) && expirationDate.before(now))

{ neverExpire = true; article.setExpirationDate(null); }

}

Show
Sergio Gonzalez added a comment - 02/Oct/12 7:24 AM Juan is going to take a look at the logic in JournalArticleLocalServiceImpl: if (status == WorkflowConstants.STATUS_APPROVED) { Date expirationDate = article.getExpirationDate(); if ((expirationDate != null) && expirationDate.before(now)) { neverExpire = true; article.setExpirationDate(null); } }
Hide
Permalink
Michael Saechang added a comment - 24/Oct/12 10:00 AM

Committed on:
Portal 6.2.x GIT ID: 6f64be48188ffaff36b693ae17fea198a745851e.

Show
Michael Saechang added a comment - 24/Oct/12 10:00 AM Committed on: Portal 6.2.x GIT ID: 6f64be48188ffaff36b693ae17fea198a745851e.
Hide
Permalink
Ginson Ren added a comment - 25/Oct/12 3:22 AM

PASSED Manual Testing following the steps in the description.

Reproduced on:
Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

"Never Auto-expire" is still checked.

Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: bb0a587f9b79470896590002198fa99472763983.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 601e73e2faa6c1954d351c9e01b0193918f2cf03.

User cannot publish the web content and the page will show "Your request failed to complete. Please enter a valid expiration date."

Show
Ginson Ren added a comment - 25/Oct/12 3:22 AM PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. "Never Auto-expire" is still checked. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: bb0a587f9b79470896590002198fa99472763983. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 601e73e2faa6c1954d351c9e01b0193918f2cf03. User cannot publish the web content and the page will show "Your request failed to complete. Please enter a valid expiration date."

People

  • Assignee:
    Ginson Ren
    Reporter:
    Szymon Golebiewski
    Participants of an Issue:
    Ginson Ren, Michael Saechang, Sergio Gonzalez, Szymon Golebiewski
Vote (0)
Watch (1)

Dates

  • Created:
    16/Aug/12 7:08 AM
    Updated:
    08/Feb/13 4:49 PM
    Resolved:
    11/Oct/12 2:15 PM
    Days since last comment:
    29 weeks, 6 days ago

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.