Re: [commons-fileupload2-jakarta-servlet6] - 2.0.0.M2 -DiskItemFile setPath
hi, thank you for reviewing this. I am just trying to set the path for temporaty file location for upload String path = new File(System.getProperty("java.io.tmpdir")).getPath(); DiskFileItemFactory factory = DiskFileItemFactory.builder().get(); // sets temporary location to store files factory.setPath(path); // does not have setter for path factory.setRepository();// does not have setter for repo, it does have the getter though or I tried to see if Jakarta has setter available JakartaServletDiskFileUpload upload = new JakartaServletDiskFileUpload(factory); upload.setSizeMax(MEMORY_THRESHOLD); upload.setSizeMax(MEMORY_THRESHOLD); upload.setPath(path);// not there eiter Sent: Friday, July 05, 2024 at 9:04 PM From: "Gary Gregory" To: "Commons Developers List" Subject: Re: [commons-fileupload2-jakarta-servlet6] - 2.0.0.M2 -DiskItemFile setPath Hello, Could you point out precisely in code what you are wanting to do with DiskFileFactory? Gary On Fri, Jul 5, 2024 at 8:18 AM sendi Tho wrote: > > Greetings guys, > > > I am trying to use the new "commons-fileupload2-jakarta-servlet6" > > org.apache.commons > commons-fileupload2-jakarta-servlet6 > 2.0.0-M2 > > > > looks like the M2 jar from maven and the code differs ( getting warning like > bycode and source code does not match). > > so currently this build does not allow DiskFileFactory api users to set the > repository path.. is this intentional ? how to set the path? > > the path seems to come from FileItemFactory, but as FileItemFactory is > abstract and DiskItemFactory delegates through its builder the path setter is > lost. > > also I could not find the 1.x prod build ( assuming we are on 2.x version) of > upload2 servlet6. the 2.x using the builder and change in api.. I just wanted > to change the package name to jakarta and be done with this.. :) > > thanks in advance. > > - > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [commons-fileupload2-jakarta-servlet6] - 2.0.0.M2 -DiskItemFile setPath
Hello, Could you point out precisely in code what you are wanting to do with DiskFileFactory? Gary On Fri, Jul 5, 2024 at 8:18 AM sendi Tho wrote: > > Greetings guys, > > > I am trying to use the new "commons-fileupload2-jakarta-servlet6" > >org.apache.commons >commons-fileupload2-jakarta-servlet6 >2.0.0-M2 > > > > looks like the M2 jar from maven and the code differs ( getting warning like > bycode and source code does not match). > > so currently this build does not allow DiskFileFactory api users to set the > repository path.. is this intentional ? how to set the path? > > the path seems to come from FileItemFactory, but as FileItemFactory is > abstract and DiskItemFactory delegates through its builder the path setter is > lost. > > also I could not find the 1.x prod build ( assuming we are on 2.x version) of > upload2 servlet6. the 2.x using the builder and change in api.. I just > wanted to change the package name to jakarta and be done with this.. :) > > thanks in advance. > > - > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
[VOTE] Release Apache Commons RNG 1.6 based on RC1
We have fixed a few bugs and added enhancements since Apache Commons RNG 1.5 was released, so I would like to release Apache Commons RNG 1.6. Apache Commons RNG 1.6 RC1 is available for review here: https://dist.apache.org/repos/dist/dev/commons/rng/1.6-RC1 (svn revision 70143) The Git tag commons-rng-1.6-RC1 commit for this RC is commons-rng-1.6-RC1 which you can browse here: https://gitbox.apache.org/repos/asf?p=commons-rng.git;a=commit;h=commons-rng-1.6-RC1 You may checkout this tag using: git clone https://gitbox.apache.org/repos/asf/commons-rng.git --branch commons-rng-1.6-RC1 commons-rng-1.6-RC1 Maven artifacts are here: https://repository.apache.org/content/repositories/orgapachecommons-/org/apache/commons/commons-rng/1.6/ These are the artifacts and their hashes: #Release SHA-512s #Fri Jul 05 12:42:04 BST 2024 commons-rng-1.6-bin.tar.gz=bd6475337043085fe48e0da4a10bbc06157b0a5cf0496e9784aedcdd27e60141575e127a49ae6dab21f2ec404e3f9b834c56155abfe58b0d8c7761f543bffdb8 commons-rng-1.6-bin.zip=dbbc2fe27c024302dfce1d62414aa3718a8bfcdfd639e6acfae5828f624ea4bbcd01511e16b429be6873e8952354eb542f90b6ff62f3a00a5e55af9a5d7480bf commons-rng-1.6-src.tar.gz=6c1f89aaf3889296d830bcfd3f05ff650670ca3b8aa5b3c395b59801615f4b98e076f6731c6c7922adc348fa5f0367e1dec0bcb176318a589b61961b064666c1 commons-rng-1.6-src.zip=af96ba992540583e515a642a61ab03b98201f8f8e4b3ce7512f497feadf19aeea8b4fab2a8e113b7b65021744212f2b357a3907e2e1df74b4ea253875123d689 org.apache.commons_commons-rng-1.6.spdx.json=9742c043487e1e49fa2dd824370bef005148af757c0f8626188edf4d39deafe115e4caa10b015892e9d32c1fe1b911d4b4119cd33e59d5107900d8c1ad145112 Signatures may be validated on a system supporting a bash Unix shell by executing: svn co https://dist.apache.org/repos/dist/dev/commons/rng/1.6-RC1/ cd 1.6-RC1 chmod +x ./signature-validator.sh for m in client-api core simple sampling bom; do ./signature-validator.sh https://repository.apache.org/content/repositories/orgapachecommons-1754/org/apache/commons/commons-rng-${m}/1.6/; done The source code contains examples that are not part of the public API. These examples contain Java 11 modules and are enabled using a profile (see below). Note: Testing randomness using statistical thresholds results in failures at a given probability. The 'maven-surefire-plugin' is configured to re-run tests that fail, and pass the build if they succeed within the allotted number of reruns (the test will be marked as 'flaky' in the report). I have tested this with 'mvn clean install' and 'mvn clean package site site:stage -Pcommons-rng-examples' using: Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: /Users/ah403/software/apache-maven-3 Java version: 11.0.23, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "14.5", arch: "aarch64", family: "mac" Details of changes since 1.5 are in the release notes: https://dist.apache.org/repos/dist/dev/commons/rng/1.6-RC1/RELEASE-NOTES.txt https://dist.apache.org/repos/dist/dev/commons/rng/1.6-RC1/site/changes-report.html Site: https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/index.html (note some *relative* links are broken and the 1.6 directories are not yet created - these will be OK once the site is deployed.) JApiCmp Report (compared to 1.5): https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-client-api/japicmp.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-core/japicmp.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-simple/japicmp.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-sampling/japicmp.html RevApi Report (compared to 1.5): https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-client-api/revapi-report.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-core/revapi-report.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-simple/revapi-report.html https://home.apache.org/~aherbert/commons-rng-1.6-RC1-site/commons-rng-sampling/revapi-report.html RAT Report: https://dist.apache.org/repos/dist/dev/commons/rng/1.6-RC1/site/rat-report.html KEYS: https://downloads.apache.org/commons/KEYS Please review the release candidate and vote. This vote will close no sooner than 72 hours from now. [ ] +1 Release these artifacts [ ] +0 OK, but... [ ] -0 OK, but really should fix... [ ] -1 I oppose this release because... Thank you, Alex Herbert, Release Manager (using key BC87A3FD0A54480F0BADBEBD21939FF0CA2A6567) The following is intended as a helper and refresher for reviewers. Validating a release candidate == These guidelines are NOT complete. Requirements: Git, Java, Maven. You can validate a release from a release candidate (RC) tag as follows. 1a) Clone and checko
[commons-fileupload2-jakarta-servlet6] - 2.0.0.M2 -DiskItemFile setPath
Greetings guys, I am trying to use the new "commons-fileupload2-jakarta-servlet6" org.apache.commons commons-fileupload2-jakarta-servlet6 2.0.0-M2 looks like the M2 jar from maven and the code differs ( getting warning like bycode and source code does not match). so currently this build does not allow DiskFileFactory api users to set the repository path.. is this intentional ? how to set the path? the path seems to come from FileItemFactory, but as FileItemFactory is abstract and DiskItemFactory delegates through its builder the path setter is lost. also I could not find the 1.x prod build ( assuming we are on 2.x version) of upload2 servlet6. the 2.x using the builder and change in api.. I just wanted to change the package name to jakarta and be done with this.. :) thanks in advance. - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org