Giter Club home page Giter Club logo

rosetta-openwayback-vpp's People

Contributors

bitzl avatar datazuul avatar dependabot-support avatar jbaiter avatar morpheus-87 avatar schmika avatar stefan-it avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

obrienben

rosetta-openwayback-vpp's Issues

Web server rewrite when owb url has its own query string

Hi,
We've been using this vpp plugin for quite a while now with Rosetta, but we've just noticed an issue with the web server (Apache) rewrite when loading web harvests that have a query string section in their own URL.

For instance, if we load an IE from Rosetta with the following primary seed:

http://owb-server.nz/webarchive/wayback/query?is_mobile=false&detail=true&is_rtl=false&@/20190412103841/https://us3.campaign-archive.com/@&dps_dvs=<dps_dvs>&dps_pid=<dps_pid>

The correct parts of the query string get removed using the suggested rewrite commands:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(([^&]*&)*)@(.*)@(.*)$
RewriteRule ^/webarchive/wayback/query$ /webarchive/wayback%3? [L,PT]

and we get the following, correctly, loading in the browser

http://owb-server.nz/webarchive/wayback/20190412020848/https://us3.campaign-archive.com/

But if the IE has a primary seed that itself contains a query string, then the rewrite rule doesn't appear to work.
For instance:

http://owb-server.nz/webarchive/wayback/query?is_mobile=false&detail=true&is_rtl=false&@/20190412103841/https://us3.campaign-archive.com/?u=57af16fa15f95ed83e0b434a9&id=7b011dfb3a&e=69b9329363@&dps_dvs=<dps_dvs>&dps_pid=<dps_pid>

will not be rewritten, and the exact same URL will be loaded in the browser.

The only place I can think it would be failing is the {QUERY_STRING} parameter in the rewrite rule, that perhaps the second ? is messing with it. Unfortunately I haven't any solutions looking around Apache docs and posts online.

Has anyone else encountered this issue with multiple query string sections?

Thanks,
Ben

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.