You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by Daniel Gornstein <dg...@mitre.org> on 2012/10/03 13:38:39 UTC

Review Request: Catch error when trying to visit a user's page who does not exist

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

Review request for rave.


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs
-----

  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1393408 
  trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1393408 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/personProfile.jsp 1393408 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1393408 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Anthony Carlucci <ac...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/#review12164
-----------------------------------------------------------



trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java
<https://reviews.apache.org/r/7407/#comment25844>

    I think this log statement should remain



trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml
<https://reviews.apache.org/r/7407/#comment25845>

    usernotfound.jsp is missing from the patch


- Anthony Carlucci


On Oct. 3, 2012, 1:54 p.m., Daniel Gornstein wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7407/
> -----------------------------------------------------------
> 
> (Updated Oct. 3, 2012, 1:54 p.m.)
> 
> 
> Review request for rave.
> 
> 
> Description
> -------
> 
> When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.
> 
> 
> Diffs
> -----
> 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1393408 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1393408 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1393408 
>   trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1393408 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1393408 
> 
> Diff: https://reviews.apache.org/r/7407/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Daniel Gornstein
> 
>


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Anthony Carlucci <ac...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/#review12169
-----------------------------------------------------------



trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/usernotfound.jsp
<https://reviews.apache.org/r/7407/#comment25849>

    Please move this text into the message bundles.


- Anthony Carlucci


On Oct. 4, 2012, 3:54 p.m., Daniel Gornstein wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7407/
> -----------------------------------------------------------
> 
> (Updated Oct. 4, 2012, 3:54 p.m.)
> 
> 
> Review request for rave.
> 
> 
> Description
> -------
> 
> When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.
> 
> 
> Diffs
> -----
> 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1394006 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1394006 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1394006 
>   trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1394006 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/usernotfound.jsp PRE-CREATION 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1394006 
> 
> Diff: https://reviews.apache.org/r/7407/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Daniel Gornstein
> 
>


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Anthony Carlucci <ac...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/#review12172
-----------------------------------------------------------

Ship it!


LGTM


trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java
<https://reviews.apache.org/r/7407/#comment25852>

    minor: since the logic inside this if statement is exactly the same as the PERSON_PROFILE block above, it's better to make the if condition an "or" check for both patterns.  I'll update with the patch submission.


- Anthony Carlucci


On Oct. 4, 2012, 4:12 p.m., Daniel Gornstein wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7407/
> -----------------------------------------------------------
> 
> (Updated Oct. 4, 2012, 4:12 p.m.)
> 
> 
> Review request for rave.
> 
> 
> Description
> -------
> 
> When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.
> 
> 
> Diffs
> -----
> 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1394006 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1394006 
>   trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1394006 
>   trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1394006 
>   trunk/rave-portal-resources/src/main/resources/messages.properties 1394006 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/usernotfound.jsp PRE-CREATION 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1394006 
> 
> Diff: https://reviews.apache.org/r/7407/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Daniel Gornstein
> 
>


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Anthony Carlucci <ac...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/#review12315
-----------------------------------------------------------

Ship it!


LGTM

- Anthony Carlucci


On Oct. 9, 2012, 7:16 p.m., Daniel Gornstein wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7407/
> -----------------------------------------------------------
> 
> (Updated Oct. 9, 2012, 7:16 p.m.)
> 
> 
> Review request for rave.
> 
> 
> Description
> -------
> 
> When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.
> 
> 
> Diffs
> -----
> 
>   trunk/rave-portal-resources/src/main/resources/messages.properties 1395546 
>   trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1395546 
> 
> Diff: https://reviews.apache.org/r/7407/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Daniel Gornstein
> 
>


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Daniel Gornstein <dg...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

(Updated Oct. 9, 2012, 7:16 p.m.)


Review request for rave.


Changes
-------

Fixing page title to display: Person Not Found


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs (updated)
-----

  trunk/rave-portal-resources/src/main/resources/messages.properties 1395546 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1395546 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Daniel Gornstein <dg...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

(Updated Oct. 4, 2012, 4:12 p.m.)


Review request for rave.


Changes
-------

Moved user not found message to messages.properties


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs (updated)
-----

  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1394006 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1394006 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1394006 
  trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1394006 
  trunk/rave-portal-resources/src/main/resources/messages.properties 1394006 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/usernotfound.jsp PRE-CREATION 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1394006 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Daniel Gornstein <dg...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

(Updated Oct. 4, 2012, 3:54 p.m.)


Review request for rave.


Changes
-------

Updated with Tony's changes


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs (updated)
-----

  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1394006 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1394006 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1394006 
  trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1394006 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/usernotfound.jsp PRE-CREATION 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1394006 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Daniel Gornstein <dg...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

(Updated Oct. 3, 2012, 1:54 p.m.)


Review request for rave.


Changes
-------

Added in a few lines removed by mistake.


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs (updated)
-----

  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1393408 
  trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1393408 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1393408 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein


Re: Review Request: RAVE 805 - Catch error when trying to visit a user's page who does not exist

Posted by Daniel Gornstein <dg...@mitre.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7407/
-----------------------------------------------------------

(Updated Oct. 3, 2012, 11:38 a.m.)


Review request for rave.


Summary (updated)
-----------------

RAVE 805 - Catch error when trying to visit a user's page who does not exist


Description
-------

When visiting a profile page which doesn't exist, show a user not found page instead of a stack trace, allowing the user to go back to rave easily.


Diffs
-----

  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/util/ControllerUtils.java 1393408 
  trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/util/ViewNames.java 1393408 
  trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java 1393408 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/jsp/views/personProfile.jsp 1393408 
  trunk/rave-portal-resources/src/main/webapp/WEB-INF/tiles-defs.xml 1393408 

Diff: https://reviews.apache.org/r/7407/diff/


Testing
-------


Thanks,

Daniel Gornstein