sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothee Maret (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SLING-9049) DistributionPublisher does not validate queue names
Date Fri, 07 Feb 2020 21:14:00 GMT

     [ https://issues.apache.org/jira/browse/SLING-9049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothee Maret resolved SLING-9049.
-----------------------------------
    Resolution: Fixed

Fixed in [93db4ac677a46a403aaafae9333fcbd695199412|https://github.com/apache/sling-org-apache-sling-distribution-journal/commit/93db4ac677a46a403aaafae9333fcbd695199412].

> DistributionPublisher does not validate queue names
> ---------------------------------------------------
>
>                 Key: SLING-9049
>                 URL: https://issues.apache.org/jira/browse/SLING-9049
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Journal Core 0.1.0
>            Reporter: Dominik Süß
>            Assignee: Timothee Maret
>            Priority: Major
>             Fix For: Content Distribution Journal Core 0.1.8
>
>
> ExtendedDistributionServiceResourceProvider currently fails to render json in case unexpected
structures are mixed in (e.g. to provide resources to render a corresponding UI)
> This causes exceptions like this:
> {code}
> java.lang.IllegalArgumentException: Unsupported entryId format jcr:content
> 	at org.apache.sling.distribution.journal.impl.queue.impl.EntryUtil.entryOffset(EntryUtil.java:32)
> 	at org.apache.sling.distribution.journal.impl.queue.impl.PubQueue.getEntry(PubQueue.java:126)
> 	at org.apache.sling.distribution.resources.impl.ExtendedDistributionServiceResourceProvider.getQueueProperties(ExtendedDistributionServiceResourceProvider.java:180)
> 	at org.apache.sling.distribution.resources.impl.ExtendedDistributionServiceResourceProvider.getChildResourceProperties(ExtendedDistributionServiceResourceProvider.java:81)
> 	at org.apache.sling.distribution.resources.impl.DistributionServiceResourceProvider.getInternalResourceProperties(DistributionServiceResourceProvider.java:64)
> 	at org.apache.sling.distribution.resources.impl.common.AbstractReadableResourceProvider.getResourceProperties(AbstractReadableResourceProvider.java:175)
> 	at org.apache.sling.distribution.resources.impl.common.AbstractReadableResourceProvider.getResource(AbstractReadableResourceProvider.java:79)
> 	at org.apache.sling.distribution.resources.impl.DistributionServiceResourceProviderFactory.getResource(DistributionServiceResourceProviderFactory.java:99)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message