Skip to content

Conversation

@sdutry
Copy link
Member

@sdutry sdutry commented Oct 11, 2017

This is still a Work In Progress

TODO:

  • Update to the 9.4.8 version when it's released
  • Check what needs to be done to upgrade portlet application

@sdutry sdutry requested a review from lukaszlenart October 11, 2017 21:55
@lukaszlenart lukaszlenart self-assigned this Oct 12, 2017
Copy link
Member

@lukaszlenart lukaszlenart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left few comments but this is good 💪

<webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory>
<webAppConfig>
<descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
</webAppConfig>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to add instead

<webApp>
     <contextPath>/${project.artifactId}</contextPath>
</webApp>

<webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory>
<webAppConfig>
<descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
</webAppConfig>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, what do you think about adding:

<webApp>
    <contextPath>/${project.artifactId}</contextPath>
</webApp>

json/pom.xml Outdated
<systemProperty>
<name>xwork.loggerFactory</name>
<value>com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory</value>
</systemProperty>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property can be removed as well

<webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory>
<webAppConfig>
<descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
</webAppConfig>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here as above

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<struts2.version>2.5.12</struts2.version>
<log4j2.version>2.8.2</log4j2.version>
<jetty-plugin.version>9.4.7.v20170914</jetty-plugin.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test="person==null || person.personId == null">
<s:set name="title" value="%{'Add new person'}"/>
<s:set var="title" value="%{'Add new person'}"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

<div class="titleDiv"><s:text name="application.title"/></div>
<h1><s:text name="label.persons"/></h1>
<s:url id="url" action="inputPerson" />
<s:url var="url" action="inputPerson" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@sdutry
Copy link
Member Author

sdutry commented Oct 12, 2017

adjusted according to the remarks

@lukaszlenart
Copy link
Member

Looks good, do you want to wait to fulfill the rest of TODOs?

@sdutry
Copy link
Member Author

sdutry commented Oct 13, 2017

do you want to wait to fulfill the rest of TODOs?

There's 2 or so example applications that didn't get their jetty version upgraded yet because i couldn't run them. I'd like to fix those before merging

@sdutry
Copy link
Member Author

sdutry commented Oct 13, 2017

Also, i've noted that some of the class files have old styled copyright/license info. (correct me if i'm wrong)

/*
 * $Id$
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

Should we make a seperate issue for changing them?
If so, what's the wanted copyright/license info currently?

@lukaszlenart
Copy link
Member

The above is a proper header
https://www.apache.org/legal/src-headers.html#headers

but please open another issue where we can fix that. Do you have an example of a bad license header?

@lukaszlenart
Copy link
Member

There's 2 or so example applications that didn't get their jetty version upgraded yet because i couldn't run them. I'd like to fix those before merging

Probably one of them is a portlet based application ... I have failed so many time to fix it :(

@sdutry
Copy link
Member Author

sdutry commented Oct 15, 2017

Do you have an example of a bad license header?

i just meant that the following line is in there:

 * $Id$

Probably one of them is a portlet based application

Yes it is. Unfortunately i don't have any experience with portlets and i'm not finding enough information to understand it.

The other one is the shiro-basic one which is just missing a jetty-plugin declaration.

@lukaszlenart
Copy link
Member

The $Id$ is from Subversion days, it's not a problem but if possible I clear those :)

I to do not have experience with portlets ... maybe we should ask our community?

@sdutry
Copy link
Member Author

sdutry commented Oct 15, 2017

from my side, i'm fine with the state of the pull request to merge it.

Maybe we should create a seperate issue to get the portlet application updated, that way we don't loose track of it.

Afterwards it should be easy to update the jetty-plugin once the 9.4.8 version gets released.

@sdutry
Copy link
Member Author

sdutry commented Oct 16, 2017

@lukaszlenart
old $id$ comments are also removed

@lukaszlenart
Copy link
Member

Great work! The final 👀

@lukaszlenart
Copy link
Member

💯

@lukaszlenart lukaszlenart merged commit 45af147 into apache:master Oct 17, 2017
@sdutry sdutry deleted the WW-4864 branch October 17, 2017 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants