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

Question

Question

Weblink search via URL encoding login problem

asked on March 13, 2015

Hey folks,

 

We're looking at generating weblink search URLs from a GIS software program to lookup some building permits.  The search URL works properly and everything is great (I am using a URL encoded search query), as long as the user is already logged in to weblink. 

 

If the user is not logged in to weblink, they are brought to the login page with an error message saying "Error executing child request for /weblink/search.aspx".  If I click on the link from the GIS software again, it now works as I'm logged in. 

 

If I don't set a default login option in weblink administrator and I'm logged out, when I click the GIS link I am brought to the login page as normal, but when I login I get the message "The system has encountered an error and could not complete your request".  Again, if I go back to the original GIS link and follow it again it will now work as I'm logged in.

 

What appears to be happening according to the URL string at the top of the browser is that the encoded URL is being decoded during the login page, and then the decoded URL is being passed by Laserfiche after I login which I think is causing the error.  If the URL could remain 'encoded' then I think this would go away.

 

I've tried multiple browsers (Chrome, IE) but the behavior is the same.  We're on WebLink 9.0.

 

Any ideas?  Thanks!

-Shaun

 

0 0

Answer

SELECTED ANSWER
replied on March 18, 2015

Hi Shaun,

This issue should be addressed with the latest WebLink 9 download from the Support Site. One caveat is that in the search command in the URL, the ampersand needs to be manually encoded as %26.

Regards

2 0

Replies

replied on March 13, 2015

Thanks for reporting this issue, Shaun. I'm able to recreate it. We'll look into the matter and update this thread when more information is available.

0 0
replied on March 17, 2015

This issue should be fixed in the newly released version of WebLink 9.

0 0
replied on March 17, 2015

Hey Jared,

 

Thank you for your quick response!

 

I just tested it - it does work but I'm getting some strange results in that the search results aren't matching the query.  For example, this is my query:

 

({LF:Basic~="690781002", option="LTN"}) & {LF:LOOKIN="Rio\Legislative and Regulatory Services\3800 Building Regulations - Building Permits and Inspections\20 Individual Building\01 Permit by Roll Number"}

 

When I encode this I get:

https://laserfiche/weblink/search.aspx?searchcommand=%28%7BLF%3ABasic%7E%3D%22690781002%22%2C+option%3D%22LTN%22%7D%29+%26+%7BLF%3ALOOKIN%3D%22Rio%5CLegislative+and+Regulatory+Services%5C3800+Building+Regulations+-+Building+Permits+and+Inspections%5C20+Individual+Building%5C01+Permit+by+Roll+Number%22%7D

 

When I run the search if I'm already logged in to weblink I am only getting one result and I'm brought right to it which I like.  When I run it without being logged in, I log in and I'm brought to a search result screen with results from all over the repository.  I think it's ignoring my LOOKIN statement, because when I manually edit the URL and run it without that I get the same variety of results.

 

This is what the 'transitionary' URL looks like when I'm at the login page:

https://laserfiche/weblink/search.aspx?searchcommand=({LF:Basic~=%22690781002%22,+option=%22LTN%22})+&+{LF:LOOKIN=%22Rio\Legislative+and+Regulatory+Services\3800+Building+Regulations+-+Building+Permits+and+Inspections\20+Individual+Building\01+Permit+by+Roll+Number%22}&cr=1

And this is what I get on the search results screen when it's showing things from all over:

https://laserfiche/weblink/search.aspx?searchcommand=({LF:Basic~=%22690781002%22,%20option=%22LTN%22})%20&%20{LF:LOOKIN=%22Rio\Legislative%20and%20Regulatory%20Services\3800%20Building%20Regulations%20-%20Building%20Permits%20and%20Inspections\20%20Individual%20Building\01%20Permit%20by%20Roll%20Number%22}&dbid=0

 

If I copy and paste the URL from the search results page (and I'm already logged in), I still get all the results so I'm guessing something is getting mixed up on the syntax.

 

Perhaps my query is odd, but I'm trying to find any documents that have a specific number in the name of the shortcut in a specific folder and subfolders.

0 0
replied on March 17, 2015 Show version history

Hi Shaun,

Your query should be fine. We're looking into this matter as well. It's similar to the issue before where it only occurs when you're not currently logged into WebLink. Thanks for reporting this issue and your patience thus far.

Regards

0 0
SELECTED ANSWER
replied on March 18, 2015

Hi Shaun,

This issue should be addressed with the latest WebLink 9 download from the Support Site. One caveat is that in the search command in the URL, the ampersand needs to be manually encoded as %26.

Regards

2 0
replied on March 18, 2015

Yep works now, I did have the %26 already but the login page must have been converting it.  Anyways, the original encoded URL is working with the .259 release for me now regardless of whether or not I'm logged in first.  

 

Thanks for your efforts guys!

 

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

Sign in to reply to this post.