-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not apply MTA archive size limit for transports with multiple MTAs #1551
Conversation
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.
In my opinion instead of this checks
-> Always split the appArchiveId (even in CTS processes it is set -> it might be also comma separated)
-> Just calculate all extensionDescriptors + appArchiveId (all ext descriptors size is not likely to be large)
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
if (sizeOfAFile >= maxFileSizeLimit) { | ||
deleteFile(context, fileEntry); | ||
throw new ContentException(Messages.SIZE_OF_ALL_OPERATIONS_FILES_0_EXCEEDS_MAX_UPLOAD_SIZE_1, sizeOfAFile, maxFileSizeLimit); |
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.
This will throw the exception and not check for the other files
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
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.
My idea for validation improvement was to get somehow file entries/ids which will be currently used for this operation and check them in the same way as it is now. Take a look StartMtaDeploySubProcessStep class how file entries are set before to start xs2-deploy or xs2-bg-deploy process diagrams.
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
b69c748
to
3c3fc92
Compare
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Show resolved
Hide resolved
3c3fc92
to
2c01eee
Compare
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Show resolved
Hide resolved
...n/java/org/cloudfoundry/multiapps/controller/process/steps/ValidateDeployParametersStep.java
Outdated
Show resolved
Hide resolved
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.
Do not forget to squash the commits into one
e9061c1
to
f693ddf
Compare
Quality Gate passedIssues Measures |
No description provided.