You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-dev@incubator.apache.org by "Xavier Dutreilh (JIRA)" <ji...@apache.org> on 2010/07/27 14:11:17 UTC

[jira] Created: (OLIO-151) Link issues with URLs for RSS streams

Link issues with URLs for RSS streams
-------------------------------------

                 Key: OLIO-151
                 URL: https://issues.apache.org/jira/browse/OLIO-151
             Project: Olio
          Issue Type: Bug
          Components: rails-app
    Affects Versions: 0.2
            Reporter: Xavier Dutreilh
            Assignee: Shanti Subramanyam
            Priority: Trivial
             Fix For: 0.2


All links to dynamic RSS streams of events become invalid when accessing the Olio website through a load balancer. Without it, everything works like a charm.

In the case of nginx, let's say we have a configuration where all requests received by the load balancer on port 80 have to be forwarded to one of the servers inside the pool known as backend:
upstream backend {
server X.Y.Z.A:3000;
server X.Y.Z.B:3000;
}

server {
  listen 80;
  server_name X.Y.Z.Z;

  access_log /var/log/nginx/access.log;

  location / {
    proxy_pass http://backend;
  }
}

Nevertheless, produced links for RSS streams are faulty since they include http://backend as the base URL instead of http://X.Y.Z.Z.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OLIO-151) Link issues with URLs for RSS streams

Posted by "Shanti Subramanyam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OLIO-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shanti Subramanyam resolved OLIO-151.
-------------------------------------

    Fix Version/s: 0.3
                       (was: 0.2)
       Resolution: Fixed

Fixed as per patch.

> Link issues with URLs for RSS streams
> -------------------------------------
>
>                 Key: OLIO-151
>                 URL: https://issues.apache.org/jira/browse/OLIO-151
>             Project: Olio
>          Issue Type: Bug
>          Components: rails-app
>    Affects Versions: 0.2
>            Reporter: Xavier Dutreilh
>            Assignee: Shanti Subramanyam
>            Priority: Trivial
>             Fix For: 0.3
>
>         Attachments: olio-06-07-2010.patch
>
>   Original Estimate: 0.03h
>  Remaining Estimate: 0.03h
>
> All links to dynamic RSS streams of events become invalid when accessing the Olio website through a load balancer. Without it, everything works like a charm.
> In the case of nginx, let's say we have a configuration where all requests received by the load balancer on port 80 have to be forwarded to one of the servers inside the pool known as backend:
> upstream backend {
> server X.Y.Z.A:3000;
> server X.Y.Z.B:3000;
> }
> server {
>   listen 80;
>   server_name X.Y.Z.Z;
>   access_log /var/log/nginx/access.log;
>   location / {
>     proxy_pass http://backend;
>   }
> }
> Nevertheless, produced links for RSS streams are faulty since they include http://backend as the base URL instead of http://X.Y.Z.Z.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OLIO-151) Link issues with URLs for RSS streams

Posted by "Xavier Dutreilh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OLIO-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Dutreilh updated OLIO-151:
---------------------------------

    Attachment: olio-06-07-2010.patch

The attached patch fixes this issue by replacing the calls to rss_events_url by rss_events_path (as the rest of the Olio application does). As a result, it does not produce absolute URLS any more ((http://myhost:myport/uri/to/my/resource for instance).

> Link issues with URLs for RSS streams
> -------------------------------------
>
>                 Key: OLIO-151
>                 URL: https://issues.apache.org/jira/browse/OLIO-151
>             Project: Olio
>          Issue Type: Bug
>          Components: rails-app
>    Affects Versions: 0.2
>            Reporter: Xavier Dutreilh
>            Assignee: Shanti Subramanyam
>            Priority: Trivial
>             Fix For: 0.2
>
>         Attachments: olio-06-07-2010.patch
>
>   Original Estimate: 0.03h
>  Remaining Estimate: 0.03h
>
> All links to dynamic RSS streams of events become invalid when accessing the Olio website through a load balancer. Without it, everything works like a charm.
> In the case of nginx, let's say we have a configuration where all requests received by the load balancer on port 80 have to be forwarded to one of the servers inside the pool known as backend:
> upstream backend {
> server X.Y.Z.A:3000;
> server X.Y.Z.B:3000;
> }
> server {
>   listen 80;
>   server_name X.Y.Z.Z;
>   access_log /var/log/nginx/access.log;
>   location / {
>     proxy_pass http://backend;
>   }
> }
> Nevertheless, produced links for RSS streams are faulty since they include http://backend as the base URL instead of http://X.Y.Z.Z.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.