jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

apex23 #PLUGIN_FILES#images/*.png not working #171

Closed Mgosoriok closed 5 months ago

Mgosoriok commented 10 months ago

Describe the bug The application is unable to find #PLUGIN_FILES#images/*.png , explorer is reporting 404 error.

To Reproduce Steps to reproduce the behavior: Try to display any page that contains "Clustering" Info

Expected behavior Application Should display the plugin images

Screenshots Error

Device (please complete the following information):

Plugin Attributes

https://xxxx.adb.us-ashburn-1.oraclecloudapps.com/r/portal/555/files/plugin/212259628532432307/v588/images/m3.png [HTTP/1.1 404 Not Found 174ms] GET https://xxxx.adb.us-ashburn-1.oraclecloudapps.com/r/portal/555/files/plugin/212259628532432307/v588/images/m2.png [HTTP/1.1 404 Not Found 174ms] GET https://xxxx.adb.us-ashburn-1.oraclecloudapps.com/r/portal/555/files/plugin/212259628532432307/v588/images/m1.png [HTTP/1.1 404 Not Found 375ms]

Mgosoriok commented 10 months ago

Hi Jeyffrey, just share with you the libraries are properly referenced , but the images path it is being not properly "built". Any clue ? I checked the plugin code.. but I dont want to change before report to you. thanks.!!!

Mgosoriok commented 10 months ago

Captura de pantalla 2023-12-12 a la(s) 11 59 19

Important to mention all files are correctly uploaded

jeffreykemp commented 10 months ago

Thanks for reporting this, I can see the same issue in the demo app. Looks like regression after APEX 23.1.

Note to self: The base path URL being generated for the plugin-based icons in the demo app is: https://apex.oracle.com/pls/r/jk64/15181/files/plugin/184856223301707224/v870/images/m1.png It should be: https://apex.oracle.com/pls/apex/r/jk64/15181/files/plugin/184856223301707224/v870/images/m1.png

jeffreykemp commented 10 months ago

A workaround in the meantime would be to copy these 5 images (m1.png, m2.png, m3.png, m4.png, m5.png) into the Application Images in the app, then set the plugin region JavaScript Initialization Code to: this.options.iconBasePath = '#APP_IMAGES#'; (as described here: https://apex.oracle.com/pls/apex/r/jk64/jk64_report_map/static)

Mgosoriok commented 10 months ago

Excelent! Thanks Jeffrey by your support! I will try the workaround and let you know ! Thanks!

Mgosoriok commented 10 months ago

Didnt work!!!

.......this.options.iconBasePath = '#APP_IMAGES#';

jeffreykemp commented 10 months ago

Did you copy the images to your Static Application Files? Check the URL paths to them.

jeffreykemp commented 10 months ago

This seems to apply to hosted instances where the URL no longer uses "/ords/r/" in the path, but "/apex/r/" now. Fix to be included in release 1.6.