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-32230

Unnecessary Shutdown button

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

Details

  • Type: Bug Bug
  • 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 M4
  • Component/s: Legacy, Legacy > Control Panel menu
  • Labels:
    • QA-R
  • Branch Version/s:
    6.1.x
  • Backported to Branch:
    Committed
  • Story Points:
    2
  • Fix Priority:
    2
  • Similar Issues:
    Show 5 results 

    LPS-18728Shutdown custom message is not used or found.
    LPS-758Hypersonic does not shutdown properly
    LPS-25577Dynamic data lists templates require portal shutdown and startup to display changes
    LPS-22863Shutdown exception in Weblogic 10.3.2
    LPS-18177Handle potential exceptions on JBoss shutdown

Description

Go to Control Panel -> Server Administration -> Shutdown
Fill the messages, and click on Shutdown.
A message appears on the top of the screen, and a Cancel Shutdown button next to Shutdown button.
The Shutdown button should disappear, because no any sense. You can use Cancel Shutdown.

6.2.x git id: 8b37e24c5c6e8e1f072a47ac9e2a54ab0d90baa4

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
Hide
Permalink
James Opensource added a comment - 15/Jan/13 6:44 PM

Here is the Solution:

At below path you will find a code snippet like below:
PATH of FILE: <liferay-installation-directory>/webapps/ROOT/html/portlet/admin/server.jspf

At LINE 801:
<aui:button onClick="<%= taglibShutdown %>" value="shutdown" />

Change it to like below(with Condition):
<c:if test="<%= !ShutdownUtil.isInProcess() %>">
<aui:button onClick="<%= taglibShutdown %>" value="shutdown" />
</c:if>

And refresh the page at browser(your installation must be in development mode).
Now after this code change, you will notice, that once you set SHUTDOWN timer, Shutdoen button will hide and "Cancel Shuddown" will prompt.

We believe this should resolve your issue.
Thanks
James Matrix

Show
James Opensource added a comment - 15/Jan/13 6:44 PM Here is the Solution: At below path you will find a code snippet like below: PATH of FILE: <liferay-installation-directory>/webapps/ROOT/html/portlet/admin/server.jspf At LINE 801: <aui:button onClick="<%= taglibShutdown %>" value="shutdown" /> Change it to like below(with Condition): <c:if test="<%= !ShutdownUtil.isInProcess() %>"> <aui:button onClick="<%= taglibShutdown %>" value="shutdown" /> </c:if> And refresh the page at browser(your installation must be in development mode). Now after this code change, you will notice, that once you set SHUTDOWN timer, Shutdoen button will hide and "Cancel Shuddown" will prompt. We believe this should resolve your issue. Thanks James Matrix
Hide
Permalink
Serena Song added a comment - 05/Feb/13 7:55 PM - edited

PASSED Manual Testing following the steps in the description.

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

A message appears on the top of the screen, and a Cancel Shutdown button next to Shutdown button.

Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 5deda67a59216847b4107af178e2b489d3247bd7.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 8b3d3bc1f59cd7a6efcedc8ac83a779c54b2e211.

There is only Cancel Shutdown button shows up.

Show
Serena Song added a comment - 05/Feb/13 7:55 PM - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. A message appears on the top of the screen, and a Cancel Shutdown button next to Shutdown button. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 5deda67a59216847b4107af178e2b489d3247bd7. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 8b3d3bc1f59cd7a6efcedc8ac83a779c54b2e211. There is only Cancel Shutdown button shows up.

People

  • Assignee:
    Serena Song
    Reporter:
    Gabor Kovacs
    Participants of an Issue:
    Gabor Kovacs, James Opensource, Serena Song
Vote (0)
Watch (0)

Dates

  • Created:
    10/Jan/13 7:34 AM
    Updated:
    03/Apr/13 5:19 PM
    Resolved:
    04/Feb/13 4:47 PM
    Days since last comment:
    14 weeks, 5 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.