Print module lacking id in the status query

Issue #661 resolved
Dominik Fröhlich created an issue

The new print modules fails to build the url for the status queries. It generates e.g.

https://geospatial/apps/print/print/status/.json

instead of e.g.

https://geospatial/apps/print/print/status/17f7a59a-6c26-429f-a2f0-a6c8cf4dd9ec@d59b4f35-43e2-4426-bd27-e8c5f8b7189b.json

Best,

Dominik

EDIT:

The v 2.15.0 on the first attempt querries the correct url (e.g. https://geospatial/apps/print/print/status/2074f275-868e-4740-b517-c72c69d31501@d59b4f35-43e2-4426-bd27-e8c5f8b7189b.json) but then continues omitting the id as discribed above.

Comments (15)

  1. Dominik Fröhlich reporter

    persists in 2.16

    EDIT: unsafe. build was unsuccessful

    EDIT2: Fixed build. Confirming error persists in 2.16. Print ID is dropped and a file “.json” is requested on the second status call.

  2. Dominik Fröhlich reporter

    Nanu? Die capabilites werden bei mir noch korrekt abgefragt. Das macht allerdings nicht waitForPrintJob()…

    Der Fehler müsste in waitForPrintJobSuccess() sein…

  3. Dominik Fröhlich reporter

    Ah, ne, waitForPrintJob () stimmt schon. Mir scheint aber eher dass response.ref leer ist. Geht das zwischendurch out of scope..?

  4. Stolz

    Bug in \src\modules\tools\print\store\actionsPrint.js

    Kommt 2x in waitForPrintJobSuccess() vor:

    replace funktioniert hier nur wenn der Mapfish-Pfad /mapfish_print_internet oder /mapfish_print lautet:

                if (response.downloadURL.includes("mapfish_print_internet")) {
                    subUrl = response.downloadURL.replace("/mapfish_print_internet/print/report/", "");
                }
                else if (response.downloadURL.includes("mapfish_print/")) {
                    subUrl = response.downloadURL.replace("/mapfish_print/print/report/", "");
                }
    

    Wenn - wie in Köln - /print-servlet-3/print/report/ im Pfad steht stimmt subURL nicht mehr.

  5. Dominik Fröhlich reporter

    jap, das ist es! Was soll heir eigentlich diese komische if / else Konstruktion? Der Pfad ist doch bekannt…?

  6. Friedrich Müller

    Hallo,

    das genannte URL-Problem ist in der Masterportal Version 2.18.0 behoben.

    Und funktioniert mit Print-Service Urls in der Form https://baseurl/printfolder/ oder https://baseurl/printfolder/print/.

    VG,

  7. Log in to comment