简体   繁体   中英

WSO2 DSS: Unable to connect to Google spreradsheet

I am trying to connect to a newly created Google spreadsheet, using the WSO2 Data Services Server (DSS), but it keeps giving me an error when I test the connection. I am using WSO2 DSS 3.2.1 with JDK 1.7.0_60 on Windows.

The sample Google spreadsheet is working fine.

It looks like this problem is due to the new format of the Google Doc URLs (introduced in March 2014)

https://docs.google.com/a/ishafoundation.org/spreadsheets/d/1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg/edit#gid=0

The older format is:

https://docs.google.com/a/ishafoundation.org/spreadsheet/ccc?key=1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg&usp=drive_web#gid=0

As a workaround to this, I am creating my spreadsheet in the old version of Google Sheets, using this link:

https://g.co/oldsheets

However, this message is on the Google Sheets help page

*Spreadsheets created in the old version of Sheets will eventually be converted to the new Sheets, which won't require any action on your part. More details coming soon. Thanks

This looks a bit scary to me, since it basically means that my data service will break at some random point in the future when Google decide to change the URL formats... Can someone from WSO2 let me know if this will be fixed in the next DSS update, and when we can expect it to be released.

Just a suggestion - but wouldn't it be better if we only had to enter the unique key for the spreadsheet (instead of the full link), and the DSS server used the Google Sheets API to retrieve the data. This might make our implementations a little more future-proof.

Yes this will be fixed in DSS 3.2.2 release. Associated JIRA is DS-930 . Alpha pack can be found from this location

Thanks

Chanika

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM