Skip to content

Commit

Permalink
Merge branch 'develop' into feature/svg-force-content-disposition-att…
Browse files Browse the repository at this point in the history
…achment
  • Loading branch information
stefanseifert committed Jan 12, 2024
2 parents d72c596 + 3d5a9c8 commit 1728b0a
Show file tree
Hide file tree
Showing 141 changed files with 3,604 additions and 2,951 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [8, 11, 17]
java: [11, 17, 21]
os: [ubuntu-latest]
distribution: [temurin]

Expand All @@ -32,6 +32,6 @@ jobs:
java-version: ${{ matrix.java }}
maven-executable: ./mvnw
sonar-run-on-os: ubuntu-latest
sonar-run-on-java-version: 11
sonar-run-on-java-version: 17
sonar-token: ${{ secrets.SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 7 additions & 5 deletions .github/workflows/maven-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Deploy snapshots to Sonatpe OSS repository and deploy site to GitHub Pages
# Deploy snapshots to Sonatype OSS repository and deploy site to GitHub Pages

name: Deploy

concurrency: ${{ github.workflow }}

on:
push:
branches:
Expand All @@ -15,19 +17,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Configure GIT
run: |
git config --global user.email "${{ secrets.GH_SITE_DEPLOY_EMAIL }}"
git config --global user.name "${{ secrets.GH_SITE_DEPLOY_NAME }}"
- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: 'maven'
java-version: 11
cache: maven

- name: Build, verify, deploy, generate site
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
body: 'Changes: https://wcm.io/handler/media/changes-report.html'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ npm-debug.log
.vlt
.vlt-sync*
.brackets.json
dependency-reduced-pom.xml
Binary file modified .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
8 changes: 4 additions & 4 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Media resolving, processing and markup generation.

Documentation: https://wcm.io/handler/media/<br/>
Issues: https://wcm-io.atlassian.net/projects/WHAN<br/>
Issues: https://github.com/wcm-io/io.wcm.handler.media/issues<br/>
Wiki: https://wcm-io.atlassian.net/wiki/<br/>
Continuous Integration: https://github.com/wcm-io/io.wcm.handler.media/actions<br/>
Commercial support: https://wcm.io/commercial-support.html
Expand Down
115 changes: 113 additions & 2 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,123 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="1.14.6" date="not released">
<release version="2.0.0" date="not released">
<action type="remove" dev="sseifert" issue="27">
Remove deprecated functionality.
</action>
<action type="update" dev="sseifert">
Switch to AEM 6.5.17 as minimum version.
</action>
<action type="update" dev="sseifert" issue="3">
MediaFileServlet: Force Content-Disposition=attachment header for SVG files served by MediaFileServlet. Also ensure URLs to SVG images are always handled by MediaFileServlet.
</action>
</release>

<release version="1.16.0" date="2023-12-18">
<action type="add" dev="sseifert" issue="14">
MediaHandlerConfig: Make list of allowed IPE editor types configurable (defaults to "image").
</action>
<action type="update" dev="sseifert" issue="26">
DefaultMediaFormatListProvider, MediaFormatValidateServlet: Eliminate usage of org.apache.sling.commons.json.
</action>
</release>

<release version="1.15.8" date="2023-09-08">
<action type="update" dev="joerghoh" issue="22">
DAM Renditions: Read width/height of rendition lazy, as this can be expensive when not configured properly or Asset metadata is missing for other reasons.
</action>
<action type="update" dev="sseifert" issue="23">
MediaComponentPropertyResolver: Add option to resolve properties directly from a value map.
</action>
</release>

<release version="1.15.6" date="2023-04-19">
<action type="update" dev="sseifert" issue="19">
Eliminate dependency to Guava. Embed Caffeine as replacement for Guava Cache.
</action>
</release>

<release version="1.15.4" date="2023-02-24">
<action type="update" dev="sseifert">
Switch to Java 11 as minimum version.
</action>
<action type="update" dev="sseifert">
Reduce dependency to Guava.
</action>
<action type="fix" dev="sseifert">
Sling-Initial-Content: Register non-standard JCR namespaces for conversion with cp2fm into enhanced DocView files.
</action>
</release>

<release version="1.15.2" date="2022-12-15">
<action type="update" dev="sseifert" issue="18">
MediaHandler: Build HTML element markup on-demand based on the current status of media when the element is requested. This allows to react on results of media post processors, and avoids building the element if not required.
</action>
<action type="fix" dev="amey-tripathi" issue="17">
File Upload Granite UI component: Fix "Clear Transformation" button when namePrefix with sub-node is used.
</action>
</release>

<release version="1.15.0" date="2022-11-17">
<action type="add" dev="sseifert" issue="9">
Add Rendition.getUriTemplate method to build URI templates for getting scaled or auto-cropped renditions of an asset with the restrictions of the rendition e.g. aspect ratio.
</action>
<action type="update" dev="sseifert" issue="16">
File Upload Granite UI Widget: Allow video/mpeg and video/quicktime by default and support updating thumbnails.
</action>
<action type="fix" dev="sseifert" issue="15">
Dynamic Media Support: Fix smart-cropping rendition validation in case unconstrained media formats are used (without exact size, e.g. only minimum width) and the original image ratio excaclty matches the requested ratio.
</action>
</release>

<release version="1.14.18" date="2022-11-09">
<action type="update" dev="sseifert" issue="13">
Dynamic Media Support: Make Smart Crop rendition validation configurable (default: enabled).
</action>
<action type="fix" dev="sseifert" issue="12">
Dynamic Media Support: Apply fail-safe approach when normalized width/height provided by Dynamic Media for smart cropping are not matching the defined aspect ratio.
</action>
</release>

<release version="1.14.16" date="2022-10-22">
<action type="update" dev="sseifert" issue="10">
DAM Media Source: Use cropping dimension based on original rendition internally. Re-calculate webenabled rendition-based cropping coordinates when loading them from repository before starting the media processing, and not only when doing the actual cropping.
</action>
<action type="fix" dev="sseifert" issue="9">
Dynamic Media Support: Fix smart-cropping rendition validation in case unconstrained media formats are used (without exact size, e.g. only minimum width).
</action>
</release>

<release version="1.14.14" date="2022-10-20">
<action type="fix" dev="sseifert">
Dynamic Media Support: Ensure smart-cropped renditions fulfill minimum size requirements.
</action>
</release>

<release version="1.14.12" date="2022-10-10">
<action type="update" dev="sseifert">
Dynamic Media Support: Do not rely on Dynamic Media feature flag to detect DM capability on publish instances. In "AUTO" mode only the availability of DM metadata on a given asset is checked.
</action>
</release>

<release version="1.14.10" date="2022-09-27">
<action type="update" dev="sseifert">
Dynamic Media Support: Introduce OSGi configuration parameter dmCapabilityDetection to switch from auto-detection to enable or disable Dynamic Media capability via configuration.
</action>
</release>

<release version="1.14.8" date="2022-09-20">
<action type="fix" dev="sseifert">
Dynamic Media Support: Make use of smart-cropped image rendition also in the case if the original image has same ratio as the requested ratio.
</action>
</release>

<release version="1.14.6" date="2022-09-02">
<action type="fix" dev="sseifert"><![CDATA[
Dynamic Media Support: Apply Site URL detection with <code>&lt;auto&gt;</code> when building Dynamic Media URLs in author instance.
]]></action>
</release>

<release version="1.14.4" date="2022-06-16">
<action type="update" dev="sseifert">
Switch to AEM 6.5.7 as minimum version.
Expand Down Expand Up @@ -103,7 +214,7 @@
Add support for properties "altValueFromDAM"/"mediaForceAltValueFromAsset". If set to true, it is forced to use the alt. text from asset description (otherwise it's the fallback behavior).
</action>
<action type="update" dev="sseifert"><![CDATA[
<strong>Change default behavior of alt text lookup from DAM</strong>: Use asset description if avalailable as alt. text, fallback to asset title if not description is set.
<strong>Change default behavior of alt text lookup from DAM</strong>: Use asset description if available, fallback to asset title if no description is set.
]]></action>
</release>

Expand Down
Loading

0 comments on commit 1728b0a

Please sign in to comment.