mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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();
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user