Active
Project:
Drush DOM Tree
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 May 2013 at 11:59 UTC
Updated:
20 May 2013 at 14:28 UTC
Currently the code needs a valid session for the user used.
The following sequence should work but does not.
drush @drupal.d8 uli
drush @drupal.d8 dom-get --user=admin admin/modules
drush @drupal.d8 dom-get --user=admin user/logout
drush @drupal.d8 dom-get --user=admin admin/modules
Comments
Comment #1
clemens.tolboomIt isn't obvious to me how to fix this properly.
Current version grabs the session ID from the sessions table. This means one should login the test user.
Comment #2
clemens.tolboomAs a side effect we cannot grab other then drupal sites as we are now require drush bootstrap including logged in user.
Comment #3
clemens.tolboomI still failed in getting better session handling.
My attempt was to create a new session but that fails.
Comment #4
clemens.tolboomI came to the following solution which logout the current users session (which is bad behaviour) then request a ULI to use that session to request the final page.
Please fix this :)
Comment #5
clemens.tolboomBy using the script above it is possible to compare different branches. But the code is as an example.
Comment #6
clemens.tolboomXREF drush #1998974: Add support for REST and (sub)page requests
Comment #6.0
clemens.tolboomUpdate summary