[jira] [Commented] (CAMEL-17651) RouteWatcherReloadStrategy crashes on Windows or if pattern is not specified

2022-02-15 Thread JP Moresmau (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-17651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492866#comment-17492866
 ] 

JP Moresmau commented on CAMEL-17651:
-

PR sent. Probably messed up the formatting as I don't understand how to pass 
formatting checks.

> RouteWatcherReloadStrategy crashes on Windows or if pattern is not specified
> 
>
> Key: CAMEL-17651
> URL: https://issues.apache.org/jira/browse/CAMEL-17651
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 3.15.0
> Environment: Windows
>Reporter: JP Moresmau
>Priority: Minor
> Fix For: 3.16.0
>
>
> On Windows, the FileFilter fails because we try to split the path using '/'.
> If I don't set a pattern, it's set to null, and pattern.split(',') fails.
> The doc states that the default pattern is \*.yaml,*.xml, so it should be 
> possible not to set a pattern.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (CAMEL-17651) RouteWatcherReloadStrategy crashes on Windows or if pattern is not specified

2022-02-15 Thread JP Moresmau (Jira)


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

JP Moresmau updated CAMEL-17651:

Description: 
On Windows, the FileFilter fails because we try to split the path using '/'.

If I don't set a pattern, it's set to null, and pattern.split(',') fails.

The doc states that the default pattern is \*.yaml,*.xml, so it should be 
possible not to set a pattern.

  was:
On Windows, the FileFilter fails because we try to split the path using '/'.

If I don't set a pattern, it's set to null, and pattern.split(',') fails.

The doc states that the default pattern is *.yaml{*},{*}*.xml, so it should be 
possible not to set a pattern.


> RouteWatcherReloadStrategy crashes on Windows or if pattern is not specified
> 
>
> Key: CAMEL-17651
> URL: https://issues.apache.org/jira/browse/CAMEL-17651
> Project: Camel
>  Issue Type: Bug
>  Components: camel-core
>Affects Versions: 3.15.0
> Environment: Windows
>Reporter: JP Moresmau
>Priority: Major
> Fix For: 3.16.0
>
>
> On Windows, the FileFilter fails because we try to split the path using '/'.
> If I don't set a pattern, it's set to null, and pattern.split(',') fails.
> The doc states that the default pattern is \*.yaml,*.xml, so it should be 
> possible not to set a pattern.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Created] (CAMEL-17651) RouteWatcherReloadStrategy crashes on Windows or if pattern is not specified

2022-02-15 Thread JP Moresmau (Jira)
JP Moresmau created CAMEL-17651:
---

 Summary: RouteWatcherReloadStrategy crashes on Windows or if 
pattern is not specified
 Key: CAMEL-17651
 URL: https://issues.apache.org/jira/browse/CAMEL-17651
 Project: Camel
  Issue Type: Bug
  Components: camel-core
Affects Versions: 3.15.0
 Environment: Windows
Reporter: JP Moresmau
 Fix For: 3.16.0


On Windows, the FileFilter fails because we try to split the path using '/'.

If I don't set a pattern, it's set to null, and pattern.split(',') fails.

The doc states that the default pattern is *.yaml{*},{*}*.xml, so it should be 
possible not to set a pattern.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (CAMEL-11028) camel-spark-rest - Adds duplicate content-type

2022-01-07 Thread JP Moresmau (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-11028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17470621#comment-17470621
 ] 

JP Moresmau commented on CAMEL-11028:
-

I get the same issue in 3.14. Using rest with a JSON RESTBindingMode causes a 
duplicate content-type to be set.

> camel-spark-rest - Adds duplicate content-type
> --
>
> Key: CAMEL-11028
> URL: https://issues.apache.org/jira/browse/CAMEL-11028
> Project: Camel
>  Issue Type: Bug
>  Components: rest
>Affects Versions: 2.18.3
>Reporter: Adam Dougal
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.18.4, 2.19.0
>
>
> This is essentially the same as 
> https://issues.apache.org/jira/browse/CAMEL-9613 . When I send a request 
> containing a 'content-type' header it will get sent with duplicate values. 
> E.g. Content-Type: \[application/json, application/json\].
> My RouteBuilder is very simple at the moment:
> {code}
> restConfiguration().component("spark-rest").port(8585);
> rest("/").post("/charges").to("direct:charges");
> from("direct:charges").to("http://localhost:8080/charges?bridgeEndpoint=true=false;);
> {code}
> Having looked at the code I can see it being added in two places:
> https://github.com/apache/camel/blob/master/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/DefaultSparkBinding.java#L73
> https://github.com/apache/camel/blob/master/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/DefaultSparkBinding.java#L109
> Is this intended behaviour? If so, how would I disable it? Thanks



--
This message was sent by Atlassian Jira
(v8.20.1#820001)