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

Fixes #1469. Handle x-www-form-urlencoded spaces in details param. #1486

Merged
merged 2 commits into from
Apr 9, 2017

Conversation

miketaylr
Copy link
Member

Not ready for review, need to add a test.

@miketaylr
Copy link
Member Author

miketaylr commented Apr 6, 2017

As said in the previous comment. This is not valid 🤡

Sorry, I didn't understand that's what you meant by

and just for the record on your proposal above mixing inadequately two things 👹

But now I do!

@miketaylr miketaylr requested a review from zoepage April 6, 2017 17:47
@miketaylr
Copy link
Member Author

r? @zoepage

@miketaylr
Copy link
Member Author

miketaylr commented Apr 6, 2017

(odd error on travis:)

127.0.0.1 - - [06/Apr/2017 18:22:32] "GET /login HTTP/1.1" 302 -

SUITE ERROR

InvalidElementState: [POST http://localhost:4444/wd/hub/session/8d0ffa25-b251-4012-827d-14b7380b7723/element/59/click / {}] Element is not enabled

Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'

System info: host: 'testing-gce-900b0a4a-c246-4383-9a85-01adc4d88626', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-51-generic', java.version: '1.8.0_111'

Driver info: org.openqa.selenium.firefox.FirefoxDriver

Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, firefoxOptions={args=[], profile=UEsDBBQACAgIAMKShkoAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51WTW/bMAy971cMOW3AKqTretlOXdcBA4Z1aFDsKMgSbauRJU0fcfPvR/mjSRNHbndKbJMS+fj4yOjBUeugfLconGnxiXhWQvdf6oo0TLXMAQHNCgVi8eFtyZSH91/exJ2nYAFtrHEhudTAVKj7Z4JGG8ln/DWE1rg1qUOwxNbS19uz9Nky788U6CrU6Pjx8vK52xiwAybwR0AAHkB8l86HK4yFK0C34OJhuKbBvB4pr51pgHrup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AAAAHVzZXIuanNQSwUGAAAAAAEAAQA1AAAA2wMAAAAA}, appBuildId=20161208153507, version=50.1.0, platform=LINUX, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, build=6efec5e1ebdd76d8a69fbbf47d817cc788aab4d2, processId=5784, browserVersion=50.1.0, platformVersion=4.4.0-51-generic, name=tests/intern, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, idle-timeout=60, takesElementScreenshot=true, platformName=linux}]

Session ID: c3186c73-1d78-4395-9f39-aff1fb05729a

  at Command.<anonymous>  <tests/functional/lib/helpers.js:96:24>

  at nextTickCallbackWith0Args  <node.js:489:9>

  at process._tickCallback  <node.js:418:13>

  at Command.<anonymous>  <tests/functional/lib/helpers.js:89:18>

  at nextTickCallbackWith0Args  <node.js:489:9>

  at process._tickCallback  <node.js:418:13>

  at Object.login  <tests/functional/lib/helpers.js:69:10>

  at Suite.registerSuite.setup  <tests/functional/comments-auth.js:23:34>

@miketaylr
Copy link
Member Author

https://github.com/webcompat/webcompat.com/blob/master/tests/functional/lib/helpers.js#L96 is where the error is happening, which is how we handle with the case where GitHub thinks we're a bot. Maybe something changed on their end...

@miketaylr
Copy link
Member Author

just repro'd that extra prompt locally and here is what the button looks like -- selector looks good. 😕

<button data-ga-click="Oauth, oauth application authorized, oauth_application_id:89385; listing_id:; came_from_integrations_directory:false;" 
               type="submit" 
               name="authorize" 
               value="1" 
               tabindex="1" 
               id="js-oauth-authorize-btn" 
               class="btn btn-primary">Authorize application</button>

And it worked for me locally...

@karlcow
Copy link
Member

karlcow commented Apr 6, 2017

I see that travis is testing with appBuildId=20161208153507, version=50.1.0, platform=LINUX, maybe something to watch out too.

how we handle with the case where GitHub thinks we're a bot. Maybe something changed on their end...

I wonder if there is a bug/feature request to open with GitHub on testing with things like travis.

@miketaylr
Copy link
Member Author

I actually got the test to pass by re-triggering today (look at the green push). Which makes me think it was some kind of network (or other) issue between GitHub/Travis.

Probably safe to review now @zoepage -- thanks!

@zoepage
Copy link
Member

zoepage commented Apr 9, 2017

@miketaylr r+
Thanks!

@zoepage zoepage merged commit e3444a5 into master Apr 9, 2017
@zoepage zoepage deleted the issues/1469/1 branch April 9, 2017 04:18
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

Successfully merging this pull request may close these issues.

3 participants