SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

FeedURLFactory.getDefault().getSpreadsheetsFeedUrl() does not work with oauth credentials, b/c SSL URL expected. #319

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call spreadsheet service with oauth credentials.
2. the url factory will not pull a ssl url - 
FeedURLFactory.getDefault().getSpreadsheetsFeedUrl()

Example:
    Does not call the correct URL:
    FeedURLFactory factory = FeedURLFactory.getDefault();
    URL url = factory.getSpreadsheetsFeedUrl();

    Expected: 
    URL url = null;
    try {                    
      url = new URL("https://spreadsheets.google.com/feeds/spreadsheets/private/full");
    } catch (MalformedURLException e1) {
      e1.printStackTrace();
    }

What is the expected output? What do you see instead?
https://spreadsheets.google.com/feeds/spreadsheets/private/full is expected, 
but url factor only gives 
http://spreadsheets.google.com/feeds/spreadsheets/private/full, non ssl url, 
and this will not work with oauth.

Workaround:
Manually setup the URL to the feed 
https://spreadsheets.google.com/feeds/spreadsheets/private/full

What version of the product are you using? On what operating system?
gdata-spreadsheet-3.0.jar

Please provide any additional information below.
http://code.google.com/p/gwt-examples/wiki/DemoGwtGData - the oauth system I'm 
using for the spreadsheet service.

Original issue reported on code.google.com by branflak...@gmail.com on 17 Jan 2011 at 5:16