Parcourir la source

MediaFileProcessor#getImageInfo 抛出的 javax.imageio.IIOException 异常在 dubbo 中会出错

reghao il y a 7 mois
Parent
commit
bb2e38382c

+ 8 - 0
oss-store/src/main/java/cn/reghao/oss/store/task/MediaFileProcessor.java

@@ -92,6 +92,14 @@ public class MediaFileProcessor {
                 urlType, objectName, quality, width, height, duration, createTime, size);
     }
 
+    /**
+     * 抛出的 javax.imageio.IIOException 异常在 dubbo 中会出错
+     * [Serialization Security] Serialized class javax.imageio.IIOException is not in allow list. Current mode is `STRICT`, will disallow to deserialize it by default. Please add it into security/serialize.allowlist or follow FAQ to configure it.
+     *
+     * @param
+     * @return
+     * @date 2025-08-17 00:08:482
+     */
     public ImageInfo getImageInfo(String imageFileId) throws Exception {
         ObjectMeta objectMeta = objectRepository.getObjectMetaById(imageFileId);
         if (objectMeta == null) {