Skip to content

v3.0.3 20240227 [Hotfix issue] #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 27, 2024
Merged

v3.0.3 20240227 [Hotfix issue] #86

merged 2 commits into from
Feb 27, 2024

Conversation

Nicklas373
Copy link
Owner

@Nicklas373 Nicklas373 commented Feb 27, 2024

--- BE: PDF Merged failed when upload file more than 2 ---
ProcessID : f415bded-5042-4fee-bef1-e11022dbfd23

Payload:
       * _token: TOKEN
       * batch: false
       * file[0]: Modul-Konsep-Perangkat-Lunak.pdf

Environment : Production

Step to reproduce :
- User klik menu merge
- User pilih file PDF yang ingin diberi watermark
- User klik button merge pdf,dan muncul error

Submitter : @StevanusAndika

Root cause :
- Wrong dropzone logic that was set for merge PDF, merge PDF should use multiple dropzone area.
It causing file that was send in the payload always single file, not batch or multiple. Then return error ;
This task can't be processed. Check why in the params. (For merging PDF we need at least 2 PDF files.)
That indicate file that send to API only one (Same explaination from payload)

Resolution :
- Properly guard merge process when user upload file less than 2 files, then that are not allowed to process then show error notifications
- Properly set dropzone multiple that was used for compress and convert to handle merge process too

--- BE: PDF Watermark Error ---
ProcessID :38de7240-3d0a-485d-ab40-ed681df39bc0

Environment : Production

Step to reproduce :
- User klik menu watermark PDF
- User memilih / drag and drop file pdf yang ingin diberi watermark
- User memilih Watermark Options(dalam kasus ini adalah text)
- User mengisi semua parameter yang dibutuhkan
- User klik button watermark PDF ,dan muncul error seperti pada error info dan error Id

Submitter : @StevanusAndika

Root cause :
- WatermarkTransparency has 2 ID in the same layout, although it already define with different call on variable, but it has another issue when try to get actual value from transparency.
Due this duplicate id, transparency value are always locked at 100%, except when both on that transparency has changed
- AddFile logic for watermarktask are not in correct order, so it can lead fileDamage issue when file was uploaded before thumbnail or text that want to set as watermark

Resolution :
- Properly split and create separate IDs for watermark font and watermark text transparency value [Reflecting change on kao-logic and kao-controller]
- Re-order addfile logic for watermarktask

--- BE: Unsupported file format! watermark PDF Images ---
ProcessID : -

Environment : Production

Step to reproduce :
- User klik menu watermark
- User pilih file PDF yang ingin diberi watermark
- User pilih Watermark Options(dalam hal ini adalah image)
- User pilih file gambar yang ingin dijadikan watermark
- User mengisi semua parameter yang dibutuhkan
- User klik button watermark PDF dan muncul error seperti pada error info

Submitter : @StevanusAndika

Root cause : Logic for file extension limit image file are not set properly…

Resolution : Properly re-condition for file extension guard to allow some of images file

Signed-off-by: Dicky Herlambang (花) <[email protected]>
Signed-off-by: Dicky Herlambang (花) <[email protected]>
@Nicklas373 Nicklas373 added bug Something isn't working javascript Pull requests that update Javascript code labels Feb 27, 2024
@Nicklas373 Nicklas373 self-assigned this Feb 27, 2024
@Nicklas373 Nicklas373 merged commit 9180dff into master Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant