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

Bug in sesion handling when using IPV6 #1012

Closed
kaplun opened this issue Apr 30, 2014 · 3 comments
Closed

Bug in sesion handling when using IPV6 #1012

kaplun opened this issue Apr 30, 2014 · 3 comments

Comments

@kaplun
Copy link
Member

kaplun commented Apr 30, 2014

Originally on 2012-04-17

Currently, if a user visits Invenio with an IPV6 address, the session will be invalid because it's not possible to extract correctly it's IP address after the changes (re-)introduced in 6459e40

Proper handling of IPV6 address must be introduced.

To reproduce the error just add in your /etc/hosts file something like:

::1     ip6-localhost ip6-loopback localhost

The browser will by default use ::1 when visiting localhost and this will trigger the session to be always invalid.

@kaplun kaplun self-assigned this Apr 30, 2014
@invenio-developers
Copy link

Originally by Samuele Kaplun samuele.kaplun@cern.ch on 2012-08-14

In c1389b2:

#CommitTicketReference repository="" revision="c1389b21328131894408f6ba7549917a8ce589ec"
WebSession: IPv6 session handling fix

- When performing a request over IPv6, disable support for
  CFG_WEBSESSION_IPADDR_CHECK_SKIP_BITS and directly
  handle the full IPv6 address.  (closes #1012)

@invenio-developers
Copy link

Originally by Samuele Kaplun samuele.kaplun@cern.ch on 2012-08-17

In c1389b2:

#CommitTicketReference repository="" revision="c1389b21328131894408f6ba7549917a8ce589ec"
WebSession: IPv6 session handling fix

- When performing a request over IPv6, disable support for
  CFG_WEBSESSION_IPADDR_CHECK_SKIP_BITS and directly
  handle the full IPv6 address.  (closes #1012)

1 similar comment
@invenio-developers
Copy link

Originally by Samuele Kaplun samuele.kaplun@cern.ch on 2012-08-17

In c1389b2:

#CommitTicketReference repository="" revision="c1389b21328131894408f6ba7549917a8ce589ec"
WebSession: IPv6 session handling fix

- When performing a request over IPv6, disable support for
  CFG_WEBSESSION_IPADDR_CHECK_SKIP_BITS and directly
  handle the full IPv6 address.  (closes #1012)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants