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

respond_to for rss is always wrong #275

Open
lchojnowski opened this issue Aug 25, 2013 · 3 comments
Open

respond_to for rss is always wrong #275

lchojnowski opened this issue Aug 25, 2013 · 3 comments

Comments

@lchojnowski
Copy link

When I try to grab rss from my ffcrm instance, i ALWAYS get an error with acceptance headers.

@steveyken
Copy link
Member

Do you have a traceback or any other errors that can help us diagnose?

On Sun, Aug 25, 2013 at 11:48 PM, lukaszchojnowski <[email protected]

wrote:

When I try to grab rss from my ffcrm instance, i ALWAYS get an error with
acceptance headers.


Reply to this email directly or view it on GitHubhttps://github.com//issues/275
.

@lchojnowski
Copy link
Author

Ok.

When i try to get url with browser, it looks okay:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <generator>Fat Free CRM v0.12.0</generator>
    <link>http://crm.(...).com/opportunities</link>
    <pubDate>Tue, 27 Aug 2013 13:10:06 +0000</pubDate>
    <title>Opportunities</title>
    <item>
      <author>(...)</author>
      <description>(...)</description>

But when i for example curl it (also applies to rss readers), i get 406 not acceptable:

➜  Downloads  wget (...)
--2013-08-27 15:11:50-- (...)
Resolving crm.unitedideas.pl (...)... 50.17.229.49
Connecting to crm.unitedideas.pl (...)|50.17.229.49|:80... connected.
HTTP request sent, awaiting response... 406 Not Acceptable
2013-08-27 15:11:51 ERROR 406: Not Acceptable.

@steveyken
Copy link
Member

Ok, I can reproduce that now... Here's my development server readout... not much to go on but it's looking like it's not authenticating properly. (I've redacted the credentials but they are correct!)

Started GET "/campaigns.rss?authentication_credentials=XXXXXXXXXXXXXXXX" for XXX.XXX.XXX.XXX at 2013-08-28 10:11:07 +0800
Processing by CampaignsController#index as RSS
Parameters: {"authentication_credentials"=>"XXXXXXXXXXXXXX"}
Filter chain halted as :require_user rendered or redirected
Completed 406 Not Acceptable in 5ms (ActiveRecord: 0.6ms)

@steveyken steveyken added the Core label Dec 31, 2014
@johnnyshields johnnyshields modified the milestone: 0.20.0 Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants