[ 
https://issues.apache.org/jira/browse/SLING-7927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902083#comment-16902083
 ] 

Jason E Bailey commented on SLING-7927:
---------------------------------------

 [~edn] you're absolutely right, there are situations where we want to fail and 
then there's situations where we want it to log and proceed. So a good solution 
would be to come up with a way of handling both scenarios. May a 
`load(content)` versus a 'loadQuietly(content)`

 

> JSON Content Loading errors out import on malformed json
> --------------------------------------------------------
>
>                 Key: SLING-7927
>                 URL: https://issues.apache.org/jira/browse/SLING-7927
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Jason E Bailey
>            Assignee: Jason E Bailey
>            Priority: Major
>             Fix For: JCR ContentLoader 2.3.2
>
>
> Current Behaviour:
> During the importing of json content from a bundle. If one of the files 
> contains malformed json the load process is discontinued and exits. This 
> stops the loading of any other, correctly formatted, data.
>  
> Expected Behaviour:
> If a single file contains malformed content, that specific file should 
> discontinue, the error logged and then the process continues to import the 
> rest of the provided content.
> As it is right now, it's possible to load the bundle and have the application 
> in an unworkable state. preventing the ability to trouble shoot and 
> investigate the root cause.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to