You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Weblink download/print PDF page generates Blank URL (Possible Character Limits)

posted on February 3, 2020

Hello,

We have a customer who is having issues with a specific set of shortcuts that once you select download/print, the Weblink PDF generation page process start to convert it, but when the PDF page is launched in the Web Browser it is blank.

Example below:

https://records.cityofcamas.us/weblink/PDFExport10.aspx?f=1648b6ac-9baa-4d3c-a0b6-3880921a860f/CON0000004%20-%207/1&fn=2017%20-%20ILA%20for%20Commute%20Trip%20Reduction.pdf&t=0

Here is the actually URL that you can click on to test the download/print:

https://records.cityofcamas.us/weblink/DocView.aspx?id=1214&dbid=0

They have other folders for shortcuts to Ordinances and Resolutions and no issues there.

I do know that the naming convention for the Inter local Documents are really long and due to this the URL strings are about 175 characters on average.

I looked in the  download.aspx file but do not see a reference to a character limit for the URL.  Would this be something I would need to add to this aspx file?

Appreciate any feedback,

Jeff Curtis

0 0
replied on February 3, 2020

Hi,

The issue appears to be the slashes in the file name.  This was resolved in 10.1 (Bug 63134).  We recommend upgrading if possible. 

If not, as a workaround, the customer can modify the rules.config file in the "Web Files" directory in the installation folder (C:\Program Files\Laserfiche\WebLink\WebLink\Web Files). 

The following lines should be replaced:

 <rule name="Rewrite PDF exporter">
    <match url="^PDF/(.*)/(.*).pdf" />
    <action type="Rewrite" url="PDFExport10.aspx?f={R:1}&amp;fn={R:2}.pdf&amp;t=0" />
  </rule>

Instead, they should read:

  <rule name="Rewrite PDF exporter">
    <match url="^PDF/(.+?)/(.+).pdf" />
    <action type="Rewrite" url="PDFExport10.aspx?f={R:1}&amp;fn={R:2}.pdf&amp;t=0" />
  </rule>

The issue is that the regular expression used to parse the URL to look up the export job ID does not take into account the possibility of slashes in the file name.

Thanks,

Melanie

3 0
replied on February 5, 2020

Hello Melanie,


Thank you for the config notes.  We update the rules.config file and tested and Print/Download now works.

We will be updating their Weblink but we are waiting for WL 10.2, which is supposed to be released any day now.

Thanks Again,

Jeff Curtis

1 0
replied on February 10, 2020

Sounds good, Jeff!  And if you haven't seen yet, we put out WL 10.2 on Friday!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.