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

Question

Question

404 Error with WebAccess URL link

asked on March 6, 2018 Show version history

We have an integration with a software that houses a URL that directs a search to WebAccess.  Done it many time but in this case we are getting a 404 Error. 

Here is the link we have in the software:

http://servername/laserfiche/index.aspx%3Fdb%3Dreponame%23view%3Dsearch%3Bsearch%3D%7B%5B%5D%3A%5BPID%5D%3D%22234234%22%7D

If you spin this through a URL decoder you get:

http://servername/laserfiche/index.aspx?db=reponame#view=search;search={[]:[PID]="234234"}

This looks right and it works.  However, the encoded URL gives us the following page

The requested URL shows: http://servername:80/laserfiche/index.aspx?db=reponame#view=search;search={[]:[PID]="234234"}

If I copy and paste this into IE or Chrome this works.

However I noticed the physical path shows:  C:\Program Files\Laserfiche\Web Access\Web Files\index.aspx?db=reponame#view=search;search={[]:[PID]="234234"}

It is like it is trying to go down further than it should.

The URL works when it is not encoded.  The URL also works if I copy the Requested URL from the error page.  It does not seem to works when passed encoded.

I asked if the URL could be not encoded in the application but it appears they use the encoding in some way to get a PID.  They are on 10.3

Thanks,

Chris

 

Edit -  I was able to re-produce this on our internal 10.3 environment using another field.

1.  Put a field with some info on it in Laserfiche.

2.  Create URL to search for that field and info.

3.  Tested and it worked.

4.  Put working URL into encoder.

5.  Try the encoded link and get error.

 

0 0

Answer

SELECTED ANSWER
replied on March 6, 2018

You are encoding too much.  All you need to encode is the part following "search=".  The 404 error is because the "?" character is encoded, and if you got past that it would not work as desired because there is no "search=" from which to read the value.

0 0
replied on March 6, 2018

Thanks Brian.  Not sure what is different about the application but it kept hanging and it was pssibly the #.  The one that seemed to work is http://servername/laserfiche/index.aspx?db=reponame%23view=search;search=%7B%5B%5D%3A%5BPID%5D%3D%22234234%22%7D

0 0

Replies

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

Sign in to reply to this post.