Custom iPrint page returns user to the iPrint default ipp page after printer install

  • 7012023
  • 25-Mar-2013
  • 15-Jan-2015

Environment

Novell iPrint for Linux

Situation

When installing an iPrint printer from a custom iPrint map page, the page should redirect back to the map page after the printer installs.  However, the page redirects to the default iPrint install page (http://<IPorDNS/ipp) instead.

Resolution

Apply the latest novell-iprint-server and novell-iprint-client RPMs for the version of OES running on the server.

Cause

An update to the iprint.js file has hard coded instructions to redirect the page to the /ipp page instead of the previous page.

The iprint.js file is located at /var/opt/novell/iprint/htdocs/scripts/

Status

Reported to Engineering

Additional Information

The parent.document.location.replace() references the ipp page, not the last page displayed.

-----<snip>-----
function PrinterIsNotInstalledAction()
{
  if(onNotInstalledActionGbl.toLowerCase() == "install")
  {
     if(platformTypeGbl != PLATFORM_TYPE_MAC)
     {
        PromptForInstall();
     }
     else
     {
        // Mac client asks if you want to install the printer
        InstallPrinter();
        /* Ajay Bug 750088, 760884, 761359, 770035
           Fix for firefox iPrint plugin since it fails to invoke ipp page after plugin process is completed.*/
        //window.setTimeout("GoBack();",20);
        parent.document.location.replace("http://"+document.location.hostname+"/ipp");
        /* End */
-----<snip>-----