Giter Club home page Giter Club logo

Comments (6)

 avatar commented on June 30, 2024

Hmm... if I use a reverse proxy I should be able to workaround this issue by forwarding the original request uri as a header option. However that makes development & testing more difficult. BTW I have requested ArangoDB to leave the original url untouched.

from hawk.

hueniverse avatar hueniverse commented on June 30, 2024

Can you provide some examples of the URIs you are having trouble with?

from hawk.

 avatar commented on June 30, 2024

Sure this is what I'm sending (from your example code): 'http://127.0.0.1:8529/resource/1?b=1&a=2'

This is what I get into my middleware process.

2013-02-15T00:25:26Z [72832] INFO middleware authentication request {"user":null,"prefix":"/","suffix":["resource","1"],"path":"(/[^/]+)*","headers":{"authorization":"Hawk id=\"dh37fgj492je\", ts=\"1360887926\", nonce=\"NzAsMT\", ext=\"and welcome!\", mac=\"gHIPVQYoyvlG4j8viAFgKO7le1oHaMgM8jUuSbPmvKA=\"","connection":"keep-alive","content-length":"0","host":"127.0.0.1:8529"},"requestType":"GET","parameters":{"a":"2","b":"1"},"urlParameters":{},"url":"/resource/1","method":"GET"}
2013-02-15T00:25:26Z [72832] INFO normalized string hawk.1.header\n1360887926\nNzAsMT\nGET\n/resource/1\n127.0.0.1\n8529\n\nand welcome!\n
2013-02-15T00:25:26Z [72832] INFO user Steve authenticated

Note: the url parameter (and method) in the debug output above has been amended by me for usage in Hawk.

from hawk.

hueniverse avatar hueniverse commented on June 30, 2024

I'm not sure what the causes are, but the query is as important to mac as the path. It must be retained.

from hawk.

 avatar commented on June 30, 2024

the cause is "parameters":{"a":"2","b":"1"} which means it is impossible to know the ordering of the query parameters.
However I've filed a feature request so that ArnagoDB retains the original URL in the request object which seems get included in the next version.

from hawk.

lock avatar lock commented on June 30, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from hawk.

Related Issues (20)

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.