-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CAMEL-13042: File producer should by default only allow to write file… #2700
Conversation
…s in the starting directory (or subs). Added new option to turn this on|off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when it is said jailStartingDirectory as the option and defaulting it to true, i understood that by default, write operations will be disabled for file producer to write other than default or its sub directories, resulting with illegalarguement exception. however, test method names are confusing for such implementation. wouldn't it be better to swap test method names regarding such feature?
super.setUp(); | ||
} | ||
|
||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@test(expected = IllegalArgumentException.class)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay yeah we can rename the test methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except the test name as @onderson said
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks Claus.
#2700) * CAMEL-13042: File producer should by default only allow to write files in the starting directory (or subs). Added new option to turn this on|off. * CAMEL-13042: Regen docs * CAMEL-13042: Polished
#2700) * CAMEL-13042: File producer should by default only allow to write files in the starting directory (or subs). Added new option to turn this on|off. * CAMEL-13042: Regen docs * CAMEL-13042: Polished
#2700) * CAMEL-13042: File producer should by default only allow to write files in the starting directory (or subs). Added new option to turn this on|off. * CAMEL-13042: Regen docs * CAMEL-13042: Polished
#2700) * CAMEL-13042: File producer should by default only allow to write files in the starting directory (or subs). Added new option to turn this on|off. * CAMEL-13042: Regen docs * CAMEL-13042: Polished
apache#2700) * CAMEL-13042: File producer should by default only allow to write files in the starting directory (or subs). Added new option to turn this on|off. * CAMEL-13042: Regen docs * CAMEL-13042: Polished
…s in the starting directory (or subs). Added new option to turn this on|off.