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

Vignesh Nayak Manel reassigned CAMEL-26130:
-------------------------------------------

    Assignee: Vignesh Nayak Manel

> camel-oaipmh - the CamelOaimphOnlyFirst header is stored on the shared 
> endpoint, so all later requests return only the first page
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26130
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26130
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Assignee: Vignesh Nayak Manel
>            Priority: Major
>             Fix For: 4.24.0
>
>
> Found while adding the catalog body types of atom, rss, oaipmh and weather 
> (CAMEL-24961, PR #28417).
> h4. 1. The CamelOaimphOnlyFirst header changes the endpoint for all later 
> exchanges
> {{OAIPMHProducer}} (main 2a465aa4814c, line 80) copies the 
> {{CamelOaimphOnlyFirst}} header onto the endpoint with 
> {{endpoint::setOnlyFirst}}. The endpoint is shared, so after one exchange 
> with {{CamelOaimphOnlyFirst=true}} every later exchange on that endpoint 
> returns only the first page, silently. Checked on 4.24.0-SNAPSHOT with 
> {{MockOaipmhServer}}.
> Proposed: use the header value for that exchange only (a local variable), and 
> do the same for the other headers copied onto the endpoint.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to