Try to use https for poi.apache.org everywhere

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2020-03-08 20:17:08 +00:00
parent a7d96dcb73
commit 77fbcb788d
34 changed files with 190 additions and 185 deletions

View File

@ -30,7 +30,7 @@
<name>OOXML schemas</name>
<description>XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip</description>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<mailingLists>
<mailingList>

View File

@ -39,7 +39,7 @@
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd
</description>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<mailingLists>
<mailingList>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI Examples</description>
<mailingLists>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI Excel Ant Tasks</description>
<mailingLists>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<repositories>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<mailingLists>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<mailingLists>

View File

@ -28,7 +28,7 @@
<version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache POI</name>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<mailingLists>

View File

@ -35,4 +35,4 @@
When practical, we donate components directly to those projects for POI-enabling them.
\u001B[1mSEE ALSO\u001B[0m
\u001B[36mhttp://poi.apache.org/\u001B[0m
\u001B[36mhttps://poi.apache.org/\u001B[0m

View File

@ -35,7 +35,7 @@
<description>
OSGi bundle that contains Apache POI, and the dependencies.
</description>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<version>${poi.version}</version>
<properties>

View File

@ -7,7 +7,7 @@
<version>4.1.3-SNAPSHOT</version>
<name>Apache POI - the Java API for Microsoft Documents</name>
<description>Maven build of Apache POI for Sonar checks</description>
<url>http://poi.apache.org/</url>
<url>https://poi.apache.org/</url>
<mailingLists>
<mailingList>

View File

@ -449,7 +449,7 @@ public final class ApacheconEU08 {
TextBox<?,?> box2 = slide.createTextBox();
box2.setTextPlaceholder(TextPlaceholder.CENTER_BODY);
box2.setText(
"http://poi.apache.org/hslf/\r" +
"https://poi.apache.org/hslf/\r" +
"http://people.apache.org/~yegor");
box2.setAnchor(new Rectangle(108, 306, 504, 138));
}

View File

@ -55,7 +55,7 @@ public class Hyperlinks {
cell = sheet.createRow(0).createCell(0);
cell.setCellValue("URL Link");
HSSFHyperlink link = helper.createHyperlink(HyperlinkType.URL);
link.setAddress("http://poi.apache.org/");
link.setAddress("https://poi.apache.org/");
cell.setHyperlink(link);
cell.setCellStyle(hlink_style);

View File

@ -37,8 +37,8 @@ public class Tutorial6 {
shape1.setAnchor(new Rectangle(50, 50, 200, 50));
XSLFTextRun r1 = shape1.addNewTextParagraph().addNewTextRun();
XSLFHyperlink link1 = r1.createHyperlink();
r1.setText("http://poi.apache.org"); // visible text
link1.setAddress("http://poi.apache.org"); // link address
r1.setText("https://poi.apache.org"); // visible text
link1.setAddress("https://poi.apache.org"); // link address
XSLFTextBox shape2 = slide1.createTextBox();
shape2.setAnchor(new Rectangle(300, 50, 200, 50));

View File

@ -53,8 +53,8 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
* now includes the SXSSF which handles all of this for you, you should
* be using that instead! This code remains mostly for historical interest.
* <p>
* See <a "http://poi.apache.org/spreadsheet/how-to.html#sxssf">
* http://poi.apache.org/spreadsheet/how-to.html#sxssf</a>.
* See <a "https://poi.apache.org/spreadsheet/how-to.html#sxssf">
* https://poi.apache.org/spreadsheet/how-to.html#sxssf</a>.
* <p>
* If you really want to use this approach, which is also the one that SXSSF
* does for you, it works as follows:
@ -72,8 +72,8 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
* to all rows in the document. Older rows that are no longer in the window
* become inaccessible, as they are written to the disk.
* </p>
* See <a "http://poi.apache.org/spreadsheet/how-to.html#sxssf">
* http://poi.apache.org/spreadsheet/how-to.html#sxssf</a>.
* See <a "https://poi.apache.org/spreadsheet/how-to.html#sxssf">
* https://poi.apache.org/spreadsheet/how-to.html#sxssf</a>.
*/
public final class BigGridDemo {
private static final String XML_ENCODING = "UTF-8";

View File

@ -54,7 +54,7 @@ public class HyperlinkExample {
cell.setCellValue("URL Link");
Hyperlink link = createHelper.createHyperlink(HyperlinkType.URL);
link.setAddress("http://poi.apache.org/");
link.setAddress("https://poi.apache.org/");
cell.setHyperlink(link);
cell.setCellStyle(hlink_style);

View File

@ -18,6 +18,6 @@
/**
* Horrible SpreadSheet Format API's for reading/writting Excel files using pure Java.
*
* @see <a href="http://poi.apache.org/components/spreadsheet/index.html">Overview, tutorials, examples, guides, and tool documentation</a>
* @see <a href="https://poi.apache.org/components/spreadsheet/index.html">Overview, tutorials, examples, guides, and tool documentation</a>
*/
package org.apache.poi.hssf;

View File

@ -29,7 +29,7 @@
* <li>the {@link org.apache.poi.poifs.crypt.xor xor} package contains classes for the xor obfuscation of biff/H**F formats</li>
* </ul>
*
* @see <a href="http://poi.apache.org/encryption.html">Apache POI - Encryption support</a>
* @see <a href="https://poi.apache.org/encryption.html">Apache POI - Encryption support</a>
* @see <a href="http://msdn.microsoft.com/en-us/library/dd952186(v=office.12).aspx">ECMA-376 Document Encryption</a>
*/
package org.apache.poi.poifs.crypt;

View File

@ -267,7 +267,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su
/**
* Constructs a XSSFWorkbook object given a OpenXML4J <code>Package</code> object,
* see <a href="http://poi.apache.org/oxml4j/">http://poi.apache.org/oxml4j/</a>.
* see <a href="https://poi.apache.org/oxml4j/">https://poi.apache.org/oxml4j/</a>.
*
* <p>Once you have finished working with the Workbook, you should close the package
* by calling either {@link #close()} or {@link OPCPackage#close()}, to avoid

View File

@ -211,7 +211,7 @@ public class TestXSLFBugs {
XSLFTextRun r = p.addNewTextRun();
p.addLineBreak();
r.setText("Apache POI");
r.createHyperlink().setAddress("http://poi.apache.org");
r.createHyperlink().setAddress("https://poi.apache.org");
// create hyperlink pointing to a page, which isn't available at the time of importing the content
r = p.addNewTextRun();
r.setText("Slide 2");
@ -233,7 +233,7 @@ public class TestXSLFBugs {
XSLFTextParagraph p = shape.getTextParagraphs().get(1);
XSLFHyperlink h1 = p.getTextRuns().get(0).getHyperlink();
assertNotNull(h1);
assertEquals("http://poi.apache.org", h1.getAddress());
assertEquals("https://poi.apache.org", h1.getAddress());
XSLFHyperlink h2 = p.getTextRuns().get(2).getHyperlink();
assertNotNull(h2);
// relative url will be resolved to an absolute url, therefore this doesn't equals to "slide2.xml"
@ -724,8 +724,8 @@ public class TestXSLFBugs {
@Test
public void bug59434() throws IOException {
String url1 = "http://poi.apache.org/changes.html";
String url2 = "http://poi.apache.org/faq.html";
String url1 = "https://poi.apache.org/changes.html";
String url2 = "https://poi.apache.org/faq.html";
XMLSlideShow ppt1 = new XMLSlideShow();
PictureData pd1 = ppt1.addPicture(slTests.readFile("tomcat.png"), PictureType.PNG);
PictureData pd2 = ppt1.addPicture(slTests.readFile("santa.wmf"), PictureType.WMF);

View File

@ -587,7 +587,7 @@ public final class TestXSSFCell extends BaseTestXCell {
srcCell.setCellValue("URL LINK");
Hyperlink link = createHelper.createHyperlink(HyperlinkType.URL);
link.setAddress("http://poi.apache.org/");
link.setAddress("https://poi.apache.org/");
srcCell.setHyperlink(link);
// Set link cell style (optional)
@ -628,7 +628,7 @@ public final class TestXSSFCell extends BaseTestXCell {
srcCell.setCellValue("URL LINK");
Hyperlink link = createHelper.createHyperlink(HyperlinkType.URL);
link.setAddress("http://poi.apache.org/");
link.setAddress("https://poi.apache.org/");
destCell.setHyperlink(link);
// Set link cell style (optional)

View File

@ -195,12 +195,17 @@ public final class TestXWPFDocument {
public void testAddHyperlink() throws IOException {
try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx")) {
XWPFParagraph p = doc.createParagraph();
XWPFHyperlinkRun h = p.createHyperlinkRun("http://poi.apache.org/");
XWPFHyperlinkRun h = p.createHyperlinkRun("https://poi.apache.org/");
h.setText("Apache POI");
assertEquals("http://poi.apache.org/", h.getHyperlink(doc).getURL());
assertEquals("https://poi.apache.org/", h.getHyperlink(doc).getURL());
assertEquals(p.getRuns().size(), 1);
assertEquals(p.getRuns().get(0), h);
h = p.createHyperlinkRun("https://poi.apache.org/");
h.setText("Apache POI");
assertEquals("rId8", h.getHyperlinkId());
}
}

View File

@ -115,7 +115,7 @@ public final class TestHyperlink {
hl3.linkToSlide(slide1);
HSLFTextRun r4 = ppt1.createSlide().createTextBox().setText("page4");
HSLFHyperlink hl4 = r4.createHyperlink();
hl4.linkToUrl("http://poi.apache.org");
hl4.linkToUrl("https://poi.apache.org");
HSLFTextBox tb5 = ppt1.createSlide().createTextBox();
tb5.setText("page5");
HSLFHyperlink hl5 = tb5.createHyperlink();
@ -146,7 +146,7 @@ public final class TestHyperlink {
HSLFTextBox tb4 = (HSLFTextBox)slides.get(3).getShapes().get(0);
hl4 = tb4.getTextParagraphs().get(0).getTextRuns().get(0).getHyperlink();
assertNotNull(hl4);
assertEquals("http://poi.apache.org", hl4.getLabel());
assertEquals("https://poi.apache.org", hl4.getLabel());
assertEquals(HyperlinkType.URL, hl4.getType());
tb5 = (HSLFTextBox)slides.get(4).getShapes().get(0);

View File

@ -2693,7 +2693,7 @@ public final class TestBugs extends BaseTestBugzillaIssues {
try (Workbook wb = openSampleWorkbook("46515.xls")) {
// Get structure from webservice
String urlString = "http://poi.apache.org/components/spreadsheet/images/calendar.jpg";
String urlString = "https://poi.apache.org/components/spreadsheet/images/calendar.jpg";
URL structURL = new URL(urlString);
BufferedImage bimage;
try {

View File

@ -29,13 +29,13 @@ import org.junit.Test;
/**
* Tests to show that our documentation at
* http://poi.apache.org/hssf/eval.html
* https://poi.apache.org/hssf/eval.html
* all actually works as we'd expect them to
*/
public final class TestFormulaEvaluatorDocs {
/**
* http://poi.apache.org/hssf/eval.html#EvaluateAll
* https://poi.apache.org/hssf/eval.html#EvaluateAll
*/
@Test
public void testEvaluateAll() throws IOException {

View File

@ -808,7 +808,7 @@ public abstract class BaseTestCell {
Cell cell3 = row.createCell(2);
Hyperlink link3 = helper.createHyperlink(HyperlinkType.URL);
link3.setAddress("http://poi.apache.org/");
link3.setAddress("https://poi.apache.org/");
cell3.setHyperlink(link3);
assertNotNull(cell3.getHyperlink());

View File

@ -54,7 +54,7 @@ public abstract class BaseTestHyperlink {
cell = sheet.createRow(0).createCell((short) 0);
cell.setCellValue("URL Link");
link = createHelper.createHyperlink(HyperlinkType.URL);
link.setAddress("http://poi.apache.org/");
link.setAddress("https://poi.apache.org/");
cell.setHyperlink(link);
//link to a file in the current directory
@ -90,7 +90,7 @@ public abstract class BaseTestHyperlink {
sheet = wb2.getSheetAt(0);
link = sheet.getRow(0).getCell(0).getHyperlink();
assertEquals("http://poi.apache.org/", link.getAddress());
assertEquals("https://poi.apache.org/", link.getAddress());
link = sheet.getRow(1).getCell(0).getHyperlink();
assertEquals("hyperinks-beta4-dump.txt", link.getAddress());
link = sheet.getRow(2).getCell(0).getHyperlink();
@ -117,7 +117,7 @@ public abstract class BaseTestHyperlink {
cell2 = row.createCell(1);
cell1.setCellValue("URL Link");
link1 = createHelper.createHyperlink(HyperlinkType.URL);
link1.setAddress("http://poi.apache.org/");
link1.setAddress("https://poi.apache.org/");
cell1.setHyperlink(link1);
link2 = copyHyperlink(link1);
@ -129,7 +129,7 @@ public abstract class BaseTestHyperlink {
// Make sure hyperlinks were deep-copied, and modifying one does not modify the other.
assertNotSame(link1, link2);
assertNotEquals(link1, link2);
assertEquals("http://poi.apache.org/", link1.getAddress());
assertEquals("https://poi.apache.org/", link1.getAddress());
assertEquals("http://apache.org/", link2.getAddress());
assertEquals(link1, cell1.getHyperlink());
assertEquals(link2, cell2.getHyperlink());

View File

@ -186,7 +186,7 @@ public abstract class BaseTestSheetShiftColumns {
cell = row.createCell(1);
// CellAddress=B1, shifted to B4
cell.setCellStyle(hlinkStyle);
createHyperlink(helper, cell, HyperlinkType.URL, "http://poi.apache.org/");
createHyperlink(helper, cell, HyperlinkType.URL, "https://poi.apache.org/");
// row0 will be shifted on top of row1, so this URL should be removed
// from the workbook
@ -225,7 +225,7 @@ public abstract class BaseTestSheetShiftColumns {
verifyHyperlink(shiftedRow.getCell(3), HyperlinkType.DOCUMENT, "test!E1");
// URL, EMAIL, and FILE links anchored on a shifted cell should be moved
verifyHyperlink(shiftedRow.getCell(4), HyperlinkType.URL, "http://poi.apache.org/");
verifyHyperlink(shiftedRow.getCell(4), HyperlinkType.URL, "https://poi.apache.org/");
// Make sure hyperlinks were moved and not copied
assertNull("Document hyperlink should be moved, not copied", sh.getHyperlink(0, 0));

View File

@ -529,7 +529,7 @@ public abstract class BaseTestSheetShiftRows {
cell = row.createCell(1);
// CellAddress=B1, shifted to B4
cell.setCellStyle(hlinkStyle);
createHyperlink(helper, cell, HyperlinkType.URL, "http://poi.apache.org/");
createHyperlink(helper, cell, HyperlinkType.URL, "https://poi.apache.org/");
// row0 will be shifted on top of row1, so this URL should be removed from the workbook
Row overwrittenRow = sheet.createRow(3);
@ -567,7 +567,7 @@ public abstract class BaseTestSheetShiftRows {
verifyHyperlink(shiftedRow.getCell(0), HyperlinkType.DOCUMENT, "test!E1");
// URL, EMAIL, and FILE links anchored on a shifted cell should be moved
verifyHyperlink(shiftedRow.getCell(1), HyperlinkType.URL, "http://poi.apache.org/");
verifyHyperlink(shiftedRow.getCell(1), HyperlinkType.URL, "https://poi.apache.org/");
// Make sure hyperlinks were moved and not copied
assertNull("Document hyperlink should be moved, not copied", sh.getHyperlink(0, 0));