[Bug 62980] [PATCH] Make D* functions ignore case in headings

2019-02-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62980

Yegor Kozlov  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #2 from Yegor Kozlov  ---
Thanks for the patch. Applied in r1853268

Regards,
Yegor

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Build failed in Jenkins: POI-DSL-1.8 #646

2019-02-09 Thread Apache Jenkins Server
See 

--
Started by an SCM change
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting as environment variables the properties content 
LANG=en_US.UTF-8
FORREST_HOME=/home/jenkins/tools/forrest/latest

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building remotely on beam8 (beam) in workspace 

[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Updating https://svn.apache.org/repos/asf/poi/trunk at revision 
'2019-02-10T00:58:37.424 +'
U src/java/org/apache/poi/ss/formula/functions/DStarRunner.java
U jenkins/create_jobs.groovy
U test-data/spreadsheet/DGet.xls

<-- Got one external: forrest.properties, svn url: 
https://svn.apache.org/repos/asf/poi/site/forrest.properties -->
Fetching 'https://svn.apache.org/repos/asf/poi/site/forrest.properties' at -1 
into '
At revision 1853294


<-- Got one external: documentation, svn url: 
https://svn.apache.org/repos/asf/poi/site/src/documentation -->
Fetching 'https://svn.apache.org/repos/asf/poi/site/src/documentation' at -1 
into '
At revision 1853294

ERROR: Failed to parse svn info for external 
https://svn.apache.org/repos/asf/poi/site/src/documentation at 
./src/documentation
org.tmatesoft.svn.core.SVNException: svn: E155010: The node 
' was not found
at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetInfo.nodeFound(SvnNgGetInfo.java:154)
at 
org.tmatesoft.svn.core.internal.wc17.SVNWCContext.nodeWalkChildren(SVNWCContext.java:1578)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetInfo.run(SvnNgGetInfo.java:82)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetInfo.run(SvnNgGetInfo.java:45)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
at 
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at 
org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2497)
at 
hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1339)
at 
hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:1289)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
No changes for https://svn.apache.org/repos/asf/poi/site/forrest.properties 
since the previous build
FATAL: null
java.lang.NullPointerException
at 
hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:131)
at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:757)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:898)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Skipping publisher since build result is FAILURE
Archiving artifacts
[Fast Archiver] Compressed 220.47 MB of artifacts by 44.1% relative to #645
Skipping publisher since build result is FAILURE
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test 

Build failed in Jenkins: POI-DSL-1.13 #5

2019-02-09 Thread Apache Jenkins Server
See 

Changes:

[yegor] Bug 62980: Make D* functions ignore case in headings

[yegor] Bug 62980: Make D* functions ignore case in headings

--
[...truncated 74.68 KB...]
[junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.065 sec
[junit] Running org.apache.poi.ss.formula.functions.TestMathX
[junit] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.118 sec
[junit] Running org.apache.poi.ss.formula.functions.TestMid
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.02 sec
[junit] Running org.apache.poi.ss.formula.functions.TestMirr
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.02 sec
[junit] Running 
org.apache.poi.ss.formula.functions.TestMultiOperandNumericFunction
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.013 sec
[junit] Running org.apache.poi.ss.formula.functions.TestNper
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.008 sec
[junit] Running org.apache.poi.ss.formula.functions.TestNpv
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.015 sec
[junit] Running org.apache.poi.ss.formula.functions.TestOct2Dec
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.011 sec
[junit] Running org.apache.poi.ss.formula.functions.TestOffset
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.012 sec
[junit] Running org.apache.poi.ss.formula.functions.TestPPMT
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.015 sec
[junit] Running org.apache.poi.ss.formula.functions.TestPmt
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.004 sec
[junit] Running org.apache.poi.ss.formula.functions.TestPoisson
[junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.02 sec
[junit] Running org.apache.poi.ss.formula.functions.TestProduct
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.017 sec
[junit] Running org.apache.poi.ss.formula.functions.TestQuotient
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.004 sec
[junit] Running 
org.apache.poi.ss.formula.functions.TestQuotientFunctionsFromSpreadsheet
[junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.051 sec
[junit] Running org.apache.poi.ss.formula.functions.TestRank
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.006 sec
[junit] Running org.apache.poi.ss.formula.functions.TestRelationalOperations
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.031 sec
[junit] Running 
org.apache.poi.ss.formula.functions.TestReptFunctionsFromSpreadsheet
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.023 sec
[junit] Running 
org.apache.poi.ss.formula.functions.TestRomanFunctionsFromSpreadsheet
[junit] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.261 sec
[junit] Running org.apache.poi.ss.formula.functions.TestRoundFuncs
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
0.029 sec
[junit] Running org.apache.poi.ss.formula.functions.TestRowCol
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.049 sec
[junit] Running org.apache.poi.ss.formula.functions.TestSlope
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.023 sec
[junit] Running org.apache.poi.ss.formula.functions.TestStatsLib
[junit] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.045 sec
[junit] Running org.apache.poi.ss.formula.functions.TestSubtotal
[junit] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.061 sec
[junit] Running org.apache.poi.ss.formula.functions.TestSumif
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.004 sec
[junit] Running org.apache.poi.ss.formula.functions.TestSumifs
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.045 sec
[junit] Running org.apache.poi.ss.formula.functions.TestSumproduct
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.03 sec
[junit] Running org.apache.poi.ss.formula.functions.TestTFunc
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.029 sec
[junit] Running org.apache.poi.ss.formula.functions.TestText
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.012 sec
[junit] Running org.apache.poi.ss.formula.functions.TestTime
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.007 sec
[junit] Running 

Jenkins build is back to normal : POI-DSL-1.8 #647

2019-02-09 Thread Apache Jenkins Server
See 


-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



Jenkins build is back to normal : POI-DSL-1.10 #56

2019-02-09 Thread Apache Jenkins Server
See 


-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 63029] OPCPackage Potentially clobbers files on close()

2019-02-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63029

--- Comment #6 from Yegor Kozlov  ---
a unit test to reproduce corruption :

try(OPCPackage pkg = OPCPackage.open(path.toFile(), PackageAccess.READ_WRITE))
{
// add a marshaller that will throw an exception on save
pkg.addMarshaller("poi/junit", (part, out) -> {
throw new RuntimeException("Bugzilla 63029");
});
pkg.createPart(PackagingURIHelper.createPartName("/poi/test.xml"),
"poi/junit");
} catch (RuntimeException e){
  assert("Bugzilla 63029", e.getMessage());
}

// try to read the source file once again
try ( ZipFile zip = new ZipFile(path.toFile())){
 // throws java.util.zip.ZipException: archive is not a ZIP archive
}


an exception while saving *may* result in a clobbered file. The size of the
corrupted data depends on how much was saved and flushed on disk: it can be
anywhere from zero-byte to the length of the original file.

a simple change to avoid corruption would be to replace the original file only
if  save() succeeded. Something like this:

boolean success = false;
try {
  save(tempFile);
  success = true;
} finally {
// Close the current zip file, so we can overwrite it on all platforms
IOUtils.closeQuietly(this.zipArchive);
try {
// Copy the new file over the old one
if(success) {
FileHelper.copyFile(tempFile, targetFile);
}
} finally {
// Either the save operation succeed or not, we delete the temporary
file
if (!tempFile.delete()) {
LOG.log(POILogger.WARN, "The temporary file: '"
+ targetFile.getAbsolutePath()
+ "' cannot be deleted ! Make sure that no other
application use it.");
}
}
}

this would leave the origin intact in case of an exception.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org