Git Product home page Git Product logo

Comments (10)

kokogakayui avatar kokogakayui commented on August 21, 2024 2

Hi.

Just for the sake of feedback : mail 2.8.0 is indeed breaking my rails application in production when trying to deploy on AWS Beanstalk.

I am running ruby 3.0.5 and rails 6.1.7. Reverting back to 2.7.1 fixes it back.
Did not really find out what the error was, but something related to an uninitialized constant Mail::SendMail.

Hope this will help.

from mail.

sebbASF avatar sebbASF commented on August 21, 2024 1

#1547 includes changes to test.yml allow the PR to run as a GH action.

The unadorned draft is #1545

from mail.

eval avatar eval commented on August 21, 2024

Seems serious. @mikel how about a fix that doesn't raise here

raise ArgumentError, ":arguments expected to be an Array of individual string args" if settings[:arguments].is_a?(String)
but instead splits the string (and emits a warning)?

from mail.

mikel avatar mikel commented on August 21, 2024

@eval yes, that makes sense, we should make that a PR and get that deployed as 2.8.1 right away. If we get a string, split it and put it back in.

from mail.

sebbASF avatar sebbASF commented on August 21, 2024

Agree with restoring support for string.

However if valid arguments can contain blanks, it makes correctly splitting the string tricky.
An alternative would be to append the original string when building the command.

Whilst this would not be as safe against shell mis-interpretation, it is very unlikely that the arguments provided by callers are derived directly from user input.

As well as emitting a warning, it would be useful to document why a string is deprecated.

from mail.

eval avatar eval commented on August 21, 2024

However if valid arguments can contain blanks, it makes correctly splitting the string tricky.
An alternative would be to append the original string when building the command.

Good point @sebbASF. But adding an argument with spaces doesn't work either right? E.g. IO.popen(["ls", "-l -h"]) fails.
So it seems to me that when passed a string, the command should be a string.

from mail.

sebbASF avatar sebbASF commented on August 21, 2024

Good point, agreed

from mail.

eval avatar eval commented on August 21, 2024

Current draft: #1547

from mail.

pierre-alain-b avatar pierre-alain-b commented on August 21, 2024

Same here, this broke multiple production Rails apps. Reverting to 2.7.1.

from mail.

eval avatar eval commented on August 21, 2024

Fixed via #1545

from mail.

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.