Skip to main content
info@drupalodyssey.com
Thursday, June 5, 2025
Contact

Main navigation

  • Home
  • Blog
    • all
    • Development
    • Community
    • Management
    Aluminum Cans Passing Through the Assembly Line by cottonbro studio on Pexels
    Automate and Simplify Your Drupal Workflow with Bash Scripts for Shared Hosting
    Jul 19, 2024
    Binoculars resting on newspapers.
    Evaluating Search and Replace Scanner: The Ultimate Tool for Drupal Bulk Content Edits?
    Jun 29, 2024
    People looking at a computer screen
    S3 File System Module Not Working with Media Entity Download Module? Here's the Fix
    Jun 18, 2024
    Mechanic hands working on an engine.
    Setting Up the Etsy OAuth2 Client For Use With The Etsy Shop Integration Module
    May 10, 2024
    Fashion designer sketching new garments.
    Crafting Your Online Store: Drupal's Role in Your Etsy Success
    May 09, 2024
    Socket toolbox
    Beginner's Guide: Getting Started With Drush for Efficient Drupal Development
    May 08, 2024
    Stargazing over mountians.
    Drupal-Powered Stargazing: A Module for NASA's Astronomy Picture of the Day
    Sep 15, 2023
    Computer screen with code.
    Learn How To Script Drupal Installations Using Drush
    Dec 08, 2014
    Scuba diver with Drupal mask.
    Scuba: Drupal Style
    Oct 16, 2014
    Woman frustrated with laptop.
    5 Reasons Your CMS Sucks
    Jul 24, 2013
    Two young men having a discussion in front of a computer.
    Deployment Module XSRF Patch Committed
    Jul 05, 2013
    Two young men having a discussion in front of a computer.
    Deployment Module XSRF Patch Committed
    Jul 05, 2013
    Application settings.
    Using PHP To Disable Internet Explorer Compatibility Mode
    Jun 04, 2013
  • Resources
  • About
  • SPACER
  • SPACER
  • SPACER
  • SPACER
  • SPACER
Search
Development

Deployment Module XSRF Patch Committed

  • 0 Comments
  • July 05, 2013
  • Ron Ferguson
Two young men having a discussion in front of a computer.

Drupal Odyssey is supported by it's readers. When you purchase products or services using the links on this site, we may earn a small commission at no additional cost to you. Learn more

I recently discovered the Deployment module for Drupal that allows content to be deployed to remote sites using RESTful web services. I thought I had it all working. I was pulled off of that task to work on another project for a couple of weeks and when I got back to it I updated the modules in my dev/testing sandbox and things went to hell in a handbasket.

I recently discovered the Deployment module for Drupal that allows content to be deployed to remote sites using RESTful web services. I thought I had it all working. I was pulled off of that task to work on another project for a couple of weeks and when I got back to it I updated the modules in my dev/testing sandbox and things went to hell in a handbasket.

I started combing through the logs and it turns out that the Services module implemented a security fix that prevented cross-site request forgery (SA-CONTRIB-2013-051) so the Deployment service calls were all failing with a 401 Unauthorized error. Once I figured out where the problem was, the fix was easy; just needed to add the new X-CSRF-TOKEN header to use when making all subsequent web service calls.

I submitted a patch file for the Deployment module and to my surprise was tested by a couple developers from notable Drupal shops – Mediacurrent and Acquia. Tim Holt (timholt) from Acquia added some minor adjustments to my original patch to include the port if it was being used in the web services URL, but other than that everything tested fine. A couple of days ago (July 3, 2013) Dick Olsson (dixon_), the maintainer of the Deployment module, committed the combined patch file from Tim and myself to the git repository on Drupal.org. dixon_ says new release will be coming in the next few days that includes this bug fix. Until then, you can clone the 7.x-2.x branch of the git repo to obtain the module with this fix in place.

This gets Drupal one step closer to making it easier to stage and deploy content because that is probably the most frustrating and error prone part of working with Drupal at this point.

Learn How To Script Drupal Installations Using Drush
Learn How To Script Drupal Installations Using Drush
08 Dec,2014 Development
Using PHP To Disable Internet Explorer Compatibility Mode
04 Jun,2013 Development
Using PHP To Disable Internet Explorer Compatibility Mode

0 Comments

Login or Register to post comments.

Categories

Categories

  • Development
    (8)
  • Community
    (9)
  • Management
    (3)

Trending Blog

Trending Blog

Woman frustrated with laptop.
5 Reasons Your CMS Sucks
24 Jul, 2013
Mechanic hands working on an engine.
Setting Up the Etsy OAuth2 Client For Use With The Etsy Shop Integration Module
10 May, 2024
Stargazing over mountians.
Drupal-Powered Stargazing: A Module for NASA's Astronomy Picture of the Day
15 Sep, 2023
People looking at a computer screen
S3 File System Module Not Working with Media Entity Download Module? Here's the Fix
18 Jun, 2024
Computer screen with code.
Learn How To Script Drupal Installations Using Drush
08 Dec, 2014

Tags

Tags

  • Drupal 10
  • Drupal 9
  • Drupal 8
  • Drupal 7
  • Drush

Ad - Sidebar (300 x 250 AD)

Ad - Sidebar (300 x 600 AD)

Newsletter

Subscribe my Newsletter for new blog & tips Let’s stay updated!

Categories

  • Development
  • Community
  • Management

Useful Links

  • About
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer
  • Cookies

Must Read

Aluminum Cans Passing Through the Assembly Line by cottonbro studio on Pexels
Automate and Simplify Your Drupal Workflow with Bash Scripts for Shared Hosting
19 Jul, 2024
Binoculars resting on newspapers.
Evaluating Search and Replace Scanner: The Ultimate Tool for Drupal Bulk Content Edits?
29 Jun, 2024
Mechanic hands working on an engine.
Setting Up the Etsy OAuth2 Client For Use With The Etsy Shop Integration Module
10 May, 2024
Socket toolbox
Beginner's Guide: Getting Started With Drush for Efficient Drupal Development
08 May, 2024

© 2024 All Rights Reserved.

Proud supporter of active military, veterans and first responders.