ALF-9153 Correct the component name, and improve the fetching of the most recent post reply

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29794 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-16 14:26:51 +00:00
parent eb623f44c1
commit 7611e8b38b
2 changed files with 3 additions and 2 deletions

View File

@@ -446,7 +446,8 @@ public abstract class AbstractDiscussionWebScript extends DeclarativeWebScript
if(topic == null)
{
String error = "Could not find topic: " + name;
String error = "Could not find topic '" + name + "' for site '" +
site.getShortName() + "'";
throw new WebScriptException(Status.STATUS_NOT_FOUND, error);
}
nodeRef = topic.getNodeRef();

View File

@@ -77,7 +77,7 @@ public class DiscussionRestApiTest extends BaseWebScriptTest
private static final String USER_ONE = "UserOneThird";
private static final String USER_TWO = "UserTwoThird";
private static final String SITE_SHORT_NAME_DISCUSSION = "DiscussionSiteShortNameThree";
private static final String COMPONENT_DISCUSSION = "discussion";
private static final String COMPONENT_DISCUSSION = "discussions";
private static final String URL_FORUM_SITE_POST = "/api/forum/post/site/" + SITE_SHORT_NAME_DISCUSSION + "/" + COMPONENT_DISCUSSION + "/";
private static final String URL_FORUM_SITE_POSTS = "/api/forum/site/" + SITE_SHORT_NAME_DISCUSSION + "/" + COMPONENT_DISCUSSION + "/posts";