From 53a46c6ab3e18487172cdcdc54226423755f9b0e Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Mon, 20 Oct 2014 23:22:02 +0000 Subject: [PATCH] Add disabled unit tests for bug #46670 - failing on both HSSF and XSSF, but for different reasons git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1633257 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/usermodel/TestBugs.java | 50 +++++++++++ .../ss/usermodel/BaseTestBugzillaIssues.java | 83 ++++++++++++++++++ test-data/spreadsheet/46670_http.xls | Bin 0 -> 26112 bytes test-data/spreadsheet/46670_local.xls | Bin 0 -> 25600 bytes test-data/spreadsheet/46670_ref_airline.xls | Bin 0 -> 16384 bytes 5 files changed, 133 insertions(+) create mode 100644 test-data/spreadsheet/46670_http.xls create mode 100644 test-data/spreadsheet/46670_local.xls create mode 100644 test-data/spreadsheet/46670_ref_airline.xls diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 706ff5e50d..575e3b4850 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -2624,4 +2624,54 @@ public final class TestBugs extends BaseTestBugzillaIssues { assertEquals("International Communication Services SA", s.getRow(2).getCell(0).getStringCellValue()); assertEquals("Saudi Arabia-Riyadh", s.getRow(210).getCell(0).getStringCellValue()); } + + /** + * Read, write, read for formulas point to cells in other files. + * See {@link #bug46670()} for the main test, this just + * covers reading an existing file and checking it. + * TODO Fix this so that it works - formulas are ending up as + * #REF when being changed + */ +// @Test + public void bug46670_existing() { + HSSFWorkbook wb; + Sheet s; + Cell c; + + // Expected values + String refLocal = "'[refs/airport.xls]Sheet1'!$A$2"; + String refHttp = "'[9http://www.principlesofeconometrics.com/excel/airline.xls]Sheet1'!$A$2"; + + // Check we can read them correctly + wb = openSample("46670_local.xls"); + s = wb.getSheetAt(0); + assertEquals(refLocal, s.getRow(0).getCell(0).getCellFormula()); + + wb = openSample("46670_http.xls"); + s = wb.getSheetAt(0); + assertEquals(refHttp, s.getRow(0).getCell(0).getCellFormula()); + + // Now try to set them to the same values, and ensure that + // they end up as they did before, even with a save and re-load + wb = openSample("46670_local.xls"); + s = wb.getSheetAt(0); + c = s.getRow(0).getCell(0); + c.setCellFormula(refLocal); + assertEquals(refLocal, c.getCellFormula()); + + wb = HSSFTestDataSamples.writeOutAndReadBack(wb); + s = wb.getSheetAt(0); + assertEquals(refLocal, s.getRow(0).getCell(0).getCellFormula()); + + + wb = openSample("46670_http.xls"); + s = wb.getSheetAt(0); + c = s.getRow(0).getCell(0); + c.setCellFormula(refHttp); + assertEquals(refHttp, c.getCellFormula()); + + wb = HSSFTestDataSamples.writeOutAndReadBack(wb); + s = wb.getSheetAt(0); + assertEquals(refHttp, s.getRow(0).getCell(0).getCellFormula()); + } } diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java index 378b24526f..fb9dd8ea90 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java @@ -21,6 +21,10 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import java.util.HashMap; +import java.util.Map; + +import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.util.PaneInformation; import org.apache.poi.ss.ITestDataProvider; import org.apache.poi.ss.SpreadsheetVersion; @@ -673,4 +677,83 @@ public abstract class BaseTestBugzillaIssues { wb.getCreationHelper().createFormulaEvaluator().evaluateFormulaCell(c); return s.getRow(c.getRowIndex()).getCell(c.getColumnIndex()); } + + /** + * Should be able to write then read formulas with references + * to cells in other files, eg '[refs/airport.xls]Sheet1'!$A$2 + * or 'http://192.168.1.2/[blank.xls]Sheet1'!$A$1 . + * Additionally, if a reference to that file is provided, it should + * be possible to evaluate them too + * TODO Fix this to evaluate for XSSF + * TODO Fix this to work at all for HSSF + */ +// @Test + public void bug46670() throws Exception { + Workbook wb = _testDataProvider.createWorkbook(); + Sheet s = wb.createSheet(); + Row r1 = s.createRow(0); + + + // References to try + String ext = "xls"; + if (! (wb instanceof HSSFWorkbook)) ext += "x"; + String refLocal = "'[test."+ext+"]Sheet1'!$A$2"; + String refHttp = "'[http://example.com/test."+ext+"]Sheet1'!$A$2"; + String otherCellText = "In Another Workbook"; + + + // Create the references + Cell c1 = r1.createCell(0, Cell.CELL_TYPE_FORMULA); + c1.setCellFormula(refLocal); + + Cell c2 = r1.createCell(1, Cell.CELL_TYPE_FORMULA); + c2.setCellFormula(refHttp); + + + // Check they were set correctly + assertEquals(refLocal, c1.getCellFormula()); + assertEquals(refHttp, c2.getCellFormula()); + + + // Reload, and ensure they were serialised and read correctly + wb = _testDataProvider.writeOutAndReadBack(wb); + s = wb.getSheetAt(0); + r1 = s.getRow(0); + + c1 = r1.getCell(0); + c2 = r1.getCell(1); + assertEquals(refLocal, c1.getCellFormula()); + assertEquals(refHttp, c2.getCellFormula()); + + + // Try to evalutate, without giving a way to get at the other file + try { + evaluateCell(wb, c1); + fail("Shouldn't be able to evaluate without the other file"); + } catch (Exception e) {} + try { + evaluateCell(wb, c2); + fail("Shouldn't be able to evaluate without the other file"); + } catch (Exception e) {} + + + // Set up references to the other file + Workbook wb2 = _testDataProvider.createWorkbook(); + wb2.createSheet().createRow(1).createCell(0).setCellValue(otherCellText); + + Map evaluators = new HashMap(); + evaluators.put(refLocal, wb2.getCreationHelper().createFormulaEvaluator()); + evaluators.put(refHttp, wb2.getCreationHelper().createFormulaEvaluator()); + + FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); + evaluator.setupReferencedWorkbooks(evaluators); + + + // Try to evaluate, with the other file + evaluator.evaluateFormulaCell(c1); + evaluator.evaluateFormulaCell(c2); + + assertEquals(otherCellText, c1.getStringCellValue()); + assertEquals(otherCellText, c2.getStringCellValue()); + } } diff --git a/test-data/spreadsheet/46670_http.xls b/test-data/spreadsheet/46670_http.xls new file mode 100644 index 0000000000000000000000000000000000000000..789284d6175621fbeb47eb026de522cd5724364c GIT binary patch literal 26112 zcmeHQ2Ut|cx1U|wN=Fa{6qb&Hbg&`_Di%OgV#9{G6hT117A2s~V#A6? zMMbfMutpKlpkj?Nh*(GrYSew_+{?1NcZ=}e|9$U!@9pKATh5*Noik_7oI7Xk+~xW; zgNNG>n?53pZ2(arp9LL=x)_}W=WfDleFFCd0=yI+UEv%^%I$xV20Cz{A=TALSnsPE z=gU|`U4xKEgiQ{qo`*dlk0DJWNko&7(1?Vn*!aY`&SSa%{hL1}Lj((D0I`SF(j3e z+KI)2+@+{aHeaUHs$a};5A>xN1GQ(+Dw90j7=1BE|1ahk@P!;K;w!8zOST*=;wj7_ zQy*9t&o6T6@I?&GFJQ1qXJHN^Pg0JMi<}&UbdZZ-uIfS5fCtN(I1y|3bA=AgC067N z*NXIm^PWJHzGJTH1J1vzykg;GG~tmMWU>MPU!p;}i32zTZ$;dh_svy@L1(m53?WYv zX|UO(2iPxbD%7|KXh2r2@gA)c#W{o+R*>IHOrLal-1`ySo2$l=?!-eL)2Yx1bP;R@ zX_lh0KFDNk>im`}M#At8CraG`<=TDE%L6xucp#>0g?D zP!4^C9QtNC^sRE}d*#sg%c0AYXT6;K`{dB&;nVp$N$H2qFHNWAk*3q~NYmxvAExA# z&VN!4U0(hYIr&e>p&yk)KP!h$%cCWwp955WJt2Lafx!l?4O&E%)`LMSJu2#)#W@S2 zO3R}Lj)=0ucaVYFg!b884&6x(y@yP?Az)JYf3?83^e-4K)AUyRr|nQfNWV!!3CZXp z?2jA?Ix!Z~JBa99IF+U|`05Drx9W$s9~k4)^4uiT;M7!zuPvmv%E_?jd;WvQGbxK53ku zBu#>j8Q4Sz{J#pEvGB6x0ig>cAhvV?%+js`)bP1I98i#UaZqh<0d%SD;(%?^t^#PZ z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8SaTakM{L z>k70YNH7~o*^nO`vEL1agl04eQb$N&fjFH+mP5knj&+c5USS&~Oh`B%unH2!{#zl5&j-M?0JYIEydH&x z1jNLRc{B$mI8TA|5%j_fq75X3#OVdhJ}xmiE(KSHq)?Mz!kI6)qui7lP-;M_0i_0% z8c=FLsR5-1lp0WKK&b(x29z53f20A7h%sQsm>c77_)rBFm(VdazSGB8A6NBYFpV)g z#_za>1>=5<@$tuk@SQ)#`NDNK80+JF0RG+${=N(To(cYb2QDGUl`R;Y<2p9{zY&&j zw1Q*}$p(@wBs)mBiVg2~hhq;&j*y%n^@M~!B8b03h4()}!lQEg&uL&Zd}f1R4sqer zN&Kx6{9LjEI2DX=wJ`T7i!-sLxDLLYV zZ7`KNrEU g^T4J?1_3wxV0jjN0);KmK6!foC+hEjj9d8s2lCDK%>V!Z literal 0 HcmV?d00001 diff --git a/test-data/spreadsheet/46670_local.xls b/test-data/spreadsheet/46670_local.xls new file mode 100644 index 0000000000000000000000000000000000000000..0d73e63c65b94ad3fcc1cd27875b0a8d9238f038 GIT binary patch literal 25600 zcmeHQ30M@zv+rH5l^a16P*_e;kQ+P^1QicJRN{pf;vxtF0^Sl(;jhLc2nG-EmVg)D z8Wk1q5Y{M{1{Kd3gNRpRP@~ybHN(R0?Cc8v_kZ8}-uJfsdUmF!`&ZS~)iqr`J$Unm z!NVPgO&<|P>Q7Y2KcaR-U4qVma~JWoK7sop5nhUao#7lv%JhFo1MPUwk?LwBwAXcw z3nd()u0hBn!X<}PFTjzI$B-wI1foeuNO)XibZq=wr!oBh`Q%5*5Y9mvKrG@7XB?6T zR0Co{N!Fe^8dArDRJmg6=uO%~9YPYOEpY5bopH!Gt}j(?4Ry4lj=FH26l==a4E{l8FxLwv-o<*>`aAs*rq ztop#VczlsdyDwsBegT6^I*LmWd6M$PT;!A>q@7$0b5(bu20S>{#F1FTKNlF#d}2k; z@~uc;IPU>8**oT{-r)Q@%c~YfMiBv-P9`Y;@F5zcizI*(@K(f~dEZ=hC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Qha1Gf6)90K`ikFT3Swev}@fB4xW=&o&|1j-lQF*D3ekHN)0GApwxg;14<1j zHK5dhQUgj2C^ewefKmfW4K!&$QT)%XzFwW@WTv0J0pfqh4@DUNUxo||QB?dN0>8Mt zF%B|*?=>AVzDmVyBN(&e&Kr#T7emIEcj=IEJzzCtjQzJkmRt{jWdSPDF}xmyg#^UJ z#QZe}Cb&+4>k;%jdZG;^gv8|qEIu|qF(wIj1|(7ICgMdCxT8!;4Jb9B)PPb0N)0GA zpwxg;14<1jHK5dhQUgj2{6EqFM#LB}W6X{5H+-l7`x5Aw8sF(-tdAQ)Fqp=e9piW0 z{(x~m#`yThV(^_m#`)qc8yM^3dI0{t6a4!g`1dUE?>FG?W84&h!8!h)0etwiglq-b z8nO*!TgY~h@xDF$c7xmGNDvF-TPSR^GAQd&MBrAx~m?SVgzAsj!g?9bD^03e*tpm=^p?9 literal 0 HcmV?d00001 diff --git a/test-data/spreadsheet/46670_ref_airline.xls b/test-data/spreadsheet/46670_ref_airline.xls new file mode 100644 index 0000000000000000000000000000000000000000..b0db5c935c512f8448092e51cfd23dd459b3b189 GIT binary patch literal 16384 zcmeHO3viUx6+XM!-E1CY^L{@zK`I1{1Q4hU?xJ9|sANC{kph7P6A1}Tg3>9~MZrhK zjusSKV+2P=sV`K9+K$?!qn6epQSlK)4fp`57L|%ng!Fvh{nsSx#%gCATl?S4z5oB8 z|K9VRbMCq4KK4(?j+Cwq59RKbh;*97$nowt@${lQ^u93soGkjjyBm+;Yk}S?$xi=6 z7Krm|M|#}ye#Z9L_BOqZ5!o$H+3af9Qe=Ck7A=z`htj38Ok?>V>psSEyrfE(<0QFg+~GlEm4j&8 zna&{V-N3ShWs;T-`7PVLN=mup$~LXveZ`G%cac`NV}dkFtyD^#e6w%YD_nHkLRY@H zB}=5_gpz^71`ZrPcgVQegToKAhZMSsb)@F^d4JK=>Z%|0tyChhqJuQtu55T;KKcw+ zCyG}}B5Or(v#O4fQW+sK7owEwfd&oG8P;yd<$~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