test(file-print): extend booking document regression
This commit is contained in:
@@ -105,7 +105,9 @@ public class BusinessFileStorage {
|
||||
normalized = normalized.substring(normalized.lastIndexOf('/') + 1)
|
||||
.replaceAll("[\\p{Cntrl}]", "").trim();
|
||||
if (normalized.isBlank()) return "attachment";
|
||||
return normalized.length() <= 255 ? normalized : normalized.substring(normalized.length() - 255);
|
||||
int codePoints = normalized.codePointCount(0, normalized.length());
|
||||
if (codePoints <= 255) return normalized;
|
||||
return normalized.substring(normalized.offsetByCodePoints(0, codePoints - 255));
|
||||
}
|
||||
|
||||
private static String sha256(Path path) throws IOException {
|
||||
|
||||
@@ -7,6 +7,8 @@ info:
|
||||
businessType=OCEAN_BOOKING_DOCUMENT、businessId=oceanBookingId。BOOKING_CONFIRMATION与
|
||||
BILL_OF_LADING文档类型、版本和有效状态归Firstleg;File不判断订舱业务状态。
|
||||
x-firstleg-document-types: [BOOKING_CONFIRMATION, BILL_OF_LADING]
|
||||
x-lifecycle-owner: FIRSTLEG
|
||||
x-file-object-semantics: IMMUTABLE_CREATE_ONLY
|
||||
paths:
|
||||
/internal/file/v1/business-files/{tenantId}/OCEAN_BOOKING_DOCUMENT/{oceanBookingId}:
|
||||
post:
|
||||
|
||||
Reference in New Issue
Block a user