diff --git a/content/posts/2022-11.md b/content/posts/2022-11.md index 978f71b79..725fd7a0e 100644 --- a/content/posts/2022-11.md +++ b/content/posts/2022-11.md @@ -353,4 +353,18 @@ openjdk-8-jre-headless set on hold. - Start a harvest on AReS +## 2022-11-27 + +- I realized I made a mistake in the PDF CropBox code I wrote for dspace-api a few weeks ago + - For PDFs with only one page I was seeing this in the filter-media output: + +```console +java.lang.IndexOutOfBoundsException: 1-based index out of bounds: 2 +``` + +- It turns out that [PDDocument's getPage() is zero-based](https://javadoc.io/static/org.apache.pdfbox/pdfbox/2.0.27/org/apache/pdfbox/pdmodel/PDDocument.html#getPage-int-) +- I also updated PDFBox from 2.0.24 to 2.0.27 +- I synced DSpace 7 Test with CGSpace + - I had to follow my notes from 2022-03 to delete the missing Atmire migrations + diff --git a/docs/2022-11/index.html b/docs/2022-11/index.html index 0b4a285f8..1daee6137 100644 --- a/docs/2022-11/index.html +++ b/docs/2022-11/index.html @@ -24,7 +24,7 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe - + @@ -54,9 +54,9 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe "@type": "BlogPosting", "headline": "November, 2022", "url": "https://alanorth.github.io/cgspace-notes/2022-11/", - "wordCount": "2221", + "wordCount": "2297", "datePublished": "2022-11-01T09:11:36+03:00", - "dateModified": "2022-11-24T17:41:34+03:00", + "dateModified": "2022-11-27T12:38:48+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -520,12 +520,30 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe
# apt-mark hold openjdk-8-jdk-headless:amd64 apt-mark hold openjdk-8-jre-headless:amd64
+# apt-mark hold openjdk-8-jdk-headless:amd64 openjdk-8-jre-headless:amd64
openjdk-8-jdk-headless set on hold.
openjdk-8-jre-headless set on hold.
- Start a harvest on AReS
+2022-11-27
+
+- I realized I made a mistake in the PDF CropBox code I wrote for dspace-api a few weeks ago
+
+- For PDFs with only one page I was seeing this in the filter-media output:
+
+
+
+java.lang.IndexOutOfBoundsException: 1-based index out of bounds: 2
+
+- It turns out that PDDocument’s getPage() is zero-based
+- I also updated PDFBox from 2.0.24 to 2.0.27
+- I synced DSpace 7 Test with CGSpace
+
+- I had to follow my notes from 2022-03 to delete the missing Atmire migrations
+
+
+
diff --git a/docs/categories/index.html b/docs/categories/index.html
index 520b41a54..0a2fa15e6 100644
--- a/docs/categories/index.html
+++ b/docs/categories/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html
index d3836c563..e0c84c903 100644
--- a/docs/categories/notes/index.html
+++ b/docs/categories/notes/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html
index 15036c74d..5446b7cc7 100644
--- a/docs/categories/notes/page/2/index.html
+++ b/docs/categories/notes/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html
index 41efba7db..80c42d9ad 100644
--- a/docs/categories/notes/page/3/index.html
+++ b/docs/categories/notes/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html
index 1df80d407..e276070b6 100644
--- a/docs/categories/notes/page/4/index.html
+++ b/docs/categories/notes/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html
index 12c82c9bd..8d35003e0 100644
--- a/docs/categories/notes/page/5/index.html
+++ b/docs/categories/notes/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/6/index.html b/docs/categories/notes/page/6/index.html
index f01462857..42948102b 100644
--- a/docs/categories/notes/page/6/index.html
+++ b/docs/categories/notes/page/6/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/7/index.html b/docs/categories/notes/page/7/index.html
index 215eda15d..cf58b03f4 100644
--- a/docs/categories/notes/page/7/index.html
+++ b/docs/categories/notes/page/7/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/index.html b/docs/index.html
index e42186942..a2593a4de 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/2/index.html b/docs/page/2/index.html
index 7021ffc58..8ca112017 100644
--- a/docs/page/2/index.html
+++ b/docs/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/3/index.html b/docs/page/3/index.html
index 1e6453fbf..f01327100 100644
--- a/docs/page/3/index.html
+++ b/docs/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/4/index.html b/docs/page/4/index.html
index 557029a49..09332e337 100644
--- a/docs/page/4/index.html
+++ b/docs/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/5/index.html b/docs/page/5/index.html
index ab3189088..d249403f2 100644
--- a/docs/page/5/index.html
+++ b/docs/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/6/index.html b/docs/page/6/index.html
index ab92d0c15..f051b0bdf 100644
--- a/docs/page/6/index.html
+++ b/docs/page/6/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/7/index.html b/docs/page/7/index.html
index c51a7c289..6c640329e 100644
--- a/docs/page/7/index.html
+++ b/docs/page/7/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/8/index.html b/docs/page/8/index.html
index 166949406..afc80d2b6 100644
--- a/docs/page/8/index.html
+++ b/docs/page/8/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/9/index.html b/docs/page/9/index.html
index 397bfd644..f8769a95e 100644
--- a/docs/page/9/index.html
+++ b/docs/page/9/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 7cdb1f3aa..fc6281f15 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html
index a6759b1eb..3e5d4b8c5 100644
--- a/docs/posts/page/2/index.html
+++ b/docs/posts/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html
index d82db80a3..88bb6da78 100644
--- a/docs/posts/page/3/index.html
+++ b/docs/posts/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html
index a94c48757..8c492c85f 100644
--- a/docs/posts/page/4/index.html
+++ b/docs/posts/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html
index 1ea5ec8a3..1f79f3424 100644
--- a/docs/posts/page/5/index.html
+++ b/docs/posts/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html
index ee89f2f06..4db1912e4 100644
--- a/docs/posts/page/6/index.html
+++ b/docs/posts/page/6/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html
index 4c23bea37..cee796510 100644
--- a/docs/posts/page/7/index.html
+++ b/docs/posts/page/7/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/8/index.html b/docs/posts/page/8/index.html
index 815824953..a146b1356 100644
--- a/docs/posts/page/8/index.html
+++ b/docs/posts/page/8/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/9/index.html b/docs/posts/page/9/index.html
index ba3711a89..8ff31afa0 100644
--- a/docs/posts/page/9/index.html
+++ b/docs/posts/page/9/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index fee4618f5..0ad56dc5f 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -3,19 +3,19 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
https://alanorth.github.io/cgspace-notes/categories/
- 2022-11-24T17:41:34+03:00
+ 2022-11-27T12:38:48+03:00
https://alanorth.github.io/cgspace-notes/
- 2022-11-24T17:41:34+03:00
+ 2022-11-27T12:38:48+03:00
https://alanorth.github.io/cgspace-notes/categories/notes/
- 2022-11-24T17:41:34+03:00
+ 2022-11-27T12:38:48+03:00
https://alanorth.github.io/cgspace-notes/2022-11/
- 2022-11-24T17:41:34+03:00
+ 2022-11-27T12:38:48+03:00
https://alanorth.github.io/cgspace-notes/posts/
- 2022-11-24T17:41:34+03:00
+ 2022-11-27T12:38:48+03:00
https://alanorth.github.io/cgspace-notes/2022-10/
2022-10-31T16:59:47+03:00