Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisitorAPI throws error on invalid referrer #9617

Closed
hmboonstra opened this issue Aug 22, 2016 · 1 comment
Closed

VisitorAPI throws error on invalid referrer #9617

hmboonstra opened this issue Aug 22, 2016 · 1 comment

Comments

@hmboonstra
Copy link

DotCMS 3.5.1 throws an error if a referrer is passed with (for example) a space character in the URL.

ERROR business.VisitorAPIImpl: Invalid Referrer sent in request
java.net.URISyntaxException: Illegal character in query at index 33: http://www.ask.com/web?q=site:.nl .nl&frstpgo=0&page=1
        at java.net.URI$Parser.fail(URI.java:2848) ~[?:1.8.0_77]
        at java.net.URI$Parser.checkChars(URI.java:3021) ~[?:1.8.0_77]
        at java.net.URI$Parser.parseHierarchical(URI.java:3111) ~[?:1.8.0_77]
        at java.net.URI$Parser.parse(URI.java:3053) ~[?:1.8.0_77]
        at java.net.URI.<init>(URI.java:588) ~[?:1.8.0_77]
        at com.dotcms.visitor.business.VisitorAPIImpl.lookupReferrer(VisitorAPIImpl.java:172) [dotcms_3.5.1_3.5-8-g8506266.jar:?]
        at com.dotcms.visitor.business.VisitorAPIImpl.createVisitor(VisitorAPIImpl.java:117) [dotcms_3.5.1_3.5-8-g8506266.jar:?]
        at com.dotcms.visitor.business.VisitorAPIImpl.getVisitor(VisitorAPIImpl.java:70) [dotcms_3.5.1_3.5-8-g8506266.jar:?]
        at com.dotcms.visitor.business.VisitorAPIImpl.getVisitor(VisitorAPIImpl.java:45) [dotcms_3.5.1_3.5-8-g8506266.jar:?]
@stale
Copy link

stale bot commented Sep 29, 2019

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

@stale stale bot added the wontfix label Sep 29, 2019
@stale stale bot closed this as completed Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant