Skip to content
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

Merged
merged 3 commits into from
Jan 9, 2019

Conversation

davsclaus
Copy link
Contributor

…s in the starting directory (or subs). Added new option to turn this on|off.

…s in the starting directory (or subs). Added new option to turn this on|off.
Copy link
Contributor

@onderson onderson left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@test(expected = IllegalArgumentException.class)

Copy link
Contributor Author

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

Copy link
Contributor

@oscerd oscerd left a 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

Copy link
Member

@zregvart zregvart left a 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.

@davsclaus davsclaus merged commit 5b64969 into master Jan 9, 2019
@davsclaus davsclaus deleted the jail branch January 9, 2019 09:37
davsclaus added a commit that referenced this pull request Jan 9, 2019
#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
davsclaus added a commit that referenced this pull request Jan 11, 2019
#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
davsclaus added a commit that referenced this pull request Jan 11, 2019
#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
davsclaus added a commit that referenced this pull request Jan 11, 2019
#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
tdiesler pushed a commit to tdiesler/camel that referenced this pull request Feb 20, 2019
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants