Details
-
Type:
Feature Request
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 6.1.10 EE GA1
-
Fix Version/s: None
-
Component/s: WCM, WCM > Web Content Administration
-
Labels:None
-
Similar Issues:
Description
While working with Journal Articles, I found quite annoying and time consuming inonvenience. Method validateContent JournalArticleLocalServiceImpl looks like this:
protected void validateContent(String content) throws PortalException { if (Validator.isNull(content)) { throw new ArticleContentException(); } try { SAXReaderUtil.read(content); } catch (DocumentException de) { throw new ArticleContentException(); } }
Everything works fine till DocumentException is thrown - it is not included within newly created ArticleContentException (it cost me 20 more minutes to find the cause of the problem).
I suggest replacing
catch (DocumentException de) { throw new ArticleContentException(); }
with
catch (DocumentException de) { throw new ArticleContentException(de); }
Regards,
KG

Similar problem happens in class JournalContentImpl:
Exception should be send as a parameter within "warn" method: