Commit Graph

379 Commits

Author SHA1 Message Date
Scott Lovegrove 5ccb56d754 Make sure a null list isn't used. 2015-12-22 20:46:41 +00:00
Gordon Beeming 97fa46561b added code to not attempt to download base64 embeded images 2015-12-22 22:08:07 +02:00
Gordon Beeming cacddcea93 ctrl + K + D 2015-12-22 13:16:39 +02:00
Gordon Beeming 197eb32494 merged in root 2015-12-22 12:54:24 +02:00
Gordon Beeming 494c4295c3 Fixing a null reference exception I was getting when running OLW 2015-12-22 12:42:22 +02:00
Bruce Bowyer-Smyth 474494ddf3 Window platform spell checker 2015-12-22 20:27:17 +10:00
Bruce Bowyer-Smyth d16b3e3af6 Resurrect spelling project 2015-12-22 20:27:16 +10:00
Will Duff 3670728585 Merge pull request #200 from ScottIsAFool/Fix-MoveAdjacentToElement-Error
Issue #188 - Fix MoveAdjacentToElement Error
2015-12-22 00:41:37 -08:00
Scott Lovegrove 4269238c23 Remove original null check 2015-12-22 08:30:49 +00:00
Scott Lovegrove 561e7523a5 Double && 2015-12-22 08:22:39 +00:00
Scott Lovegrove 99eda4f734 Merge pull request #211 from willduff/issue26
Issue #26 - OLW won't open local drafts or published posts, throws an UnauthorizedAccessException
2015-12-22 08:19:55 +00:00
Will Duff c29d9fb2a8 Merge pull request #210 from willduff/google-blogger
Issue #170 - The remote server returned an error: (403) Forbidden.
2015-12-22 00:19:49 -08:00
Scott Lovegrove e9d3b65731 Add additional null check 2015-12-22 08:08:40 +00:00
Will Duff 9664d6646c Merge pull request #194 from demortes/master
Issue #66 - Fix MultiSite Wordpress over SSL
2015-12-21 23:57:27 -08:00
Will Duff dcc5d6bbfb Creating a FileStream over a directory doesn't work very well
The root cause here is that we accidentally made a breaking change when
we removed the spell checking logic. We changed the
CONTEXT_DICTIONARY_FILE constant from "context.tlx" to string.Empty.
That means in the WriteSpellingContextDictionary() and
ReadSpellingContextDictionary() methods, we were resolving a dictionary
path as Path.Combine(SpellingContextDirectory, string.Empty); and then
tried to create a FileStream on a directory. The fix here is simple,
just change the dictionary filename back to "context.tlx".
2015-12-21 22:40:22 -08:00
Will Duff 24f180d268 Guard against HTTP 403 error code when calling Picasa API directly
The OAuth access token expires quickly (every hour) and we get an HTTP
403 error code when we attempt to call a Picasa API with an expired
access token. The BloggerService class provided by the Google API Client
library for .NET takes care of automatically refreshing the access token
when calling the Blogger API. This is not true of our Picasa
integration, which features direct HTTP requests to the Picasa API
endpoint, so I've added code to catch the HTTP 403 error code and force
refresh the access token.
2015-12-21 20:54:22 -08:00
Mark Downie 6867a092bd Changed to a move operation (rather than a copy). 2015-12-21 22:41:08 -05:00
Mark Downie 244529c105 Correct exception when you hit apply.
Give the use the option to move any existing draft posts to the new folder location.
2015-12-21 22:39:47 -05:00
Scott Lovegrove a3130d5b71 Added a null check before calling 2015-12-21 00:07:04 +00:00
Scott Lovegrove f670c3a20d Register for WeblogListChanged event 2015-12-21 00:03:47 +00:00
Kevin Dethlefs 7a0976d3f8 Fixed peer-reveiewed comments, such as:
in GetUserBlogs(), I had a return statement on the inner loop, not after
all blogs were added to list.
Verified that the proper XML RPC URL was saved, so as to not confuse
blogs using the same multisite installation.
Adjusted the exception thrown to mark the proper call method.
2015-12-20 17:15:59 -06:00
Kevin Dethlefs 5a7ba1d8f3 Overridden the GetUsersBlogs() function to support MultiSite Wordpress. Calling XML RPC wp.getUsersBlogs instead of blogger.getUsersBlogs, which seems to return an empty XML set, causing multisite to cause issues with Open Live Writer. 2015-12-20 05:21:43 -06:00
Martin Woodward 1bbd48e17c Merge pull request #167 from martinwoodward/roundtrip-blogger-labels
Roundtrip Blogger labels
2015-12-18 22:16:26 +00:00
vhanla e4f7180eb1 Detect X-UA-Compatible or add it at runtime to template to support CSS3 2015-12-18 15:10:33 -05:00
vhanla e2666576b6 Added CSS3 REM support 2015-12-18 13:45:26 -05:00
Martin Woodward 3951206cd7 Merge pull request #68 from lucaslra/TabOrderAdjustment
SharePoint Connection Tab Index Adjustment
2015-12-17 21:12:21 +00:00
Martin Woodward 5ae1794366 Roundtrip labels 2015-12-17 17:39:26 +00:00
Martin Woodward d942d0aee5 Enable creation of blogger labels 2015-12-17 16:52:09 +00:00
Martin Woodward 32a76232f7 Add split post capability 2015-12-17 15:57:50 +00:00
Martin Woodward 96b67a4063 Merge pull request #75 from gep13/ChocolateyPackage
Adding basic creation of Chocolatey Package
2015-12-17 09:40:37 +00:00
Will Duff 8ec483ca9f Move Google Blogger OAuth token storage to %appdata%
Squirrel is blowing away the entire %localappdata%\OpenLiveWriter folder
each upgrade, so to avoid OAuth tokens being lost on each upgrade we put
them over in %appdata%\OpenLiveWriter instead.
2015-12-16 09:06:29 -08:00
Will Duff 1a963eaf0a Move creation of GoogleBloggerv3Secrets.json into writer.build.targets
There was an issue around the first time the project built, the JSON
file was not getting included into the project because it hadn't been
generated yet. Moving the creation of the JSON file into a centralized
writer.build.targets fixed this.
2015-12-16 08:53:29 -08:00
Will Duff 24c97bbb4a Merge branch 'master' into google-blogger 2015-12-16 08:39:44 -08:00
Will Duff 29393f94eb Update installer to package dependent DLLs
Need to package the Google Blogger API DLLs and all their dependencies
into the package. Also removed an unused OpenLiveWriter.exe.config.
2015-12-16 01:47:06 -08:00
Will Duff 4308b18bb0 Add support for uploading images to Picasa
Most of the Picasa code was forked from BloggerAtomClient
2015-12-16 00:00:26 -08:00
Will Duff e9116e2ef3 Add credits for Google Blogger package dependencies in About Form 2015-12-15 20:49:31 -08:00
Will Duff 13a7ad751d Implement support for Pages and stub out unsupported blog client methods
For the unsupported features, I used the same return values that
LiveJournal client uses.
2015-12-15 20:35:14 -08:00
Will Duff 950d360894 Implement SendAuthenticatedHttpRequest for Google Blogger 2015-12-15 16:54:28 -08:00
Martin Woodward c22d2280f4 Merge pull request #90 from shiftkey/rename-installer
rename the installer file to be more descriptive
2015-12-15 23:13:48 +00:00
Will Duff b06cad185d Implement DeletePost for Google Blogger 2015-12-15 08:13:54 -08:00
Will Duff 6894259edd Implement GetPost for Google Blogger 2015-12-15 08:02:30 -08:00
Will Duff f0fe702212 Implement EditPost for Google Blogger 2015-12-15 07:50:55 -08:00
Will Duff e4988f1690 Implement NewPost and GetRecentPosts for Google Blogger
With these changes, Google Blogger users can successfully connect to a
Google Blogger blog, post a simple text-only post, and view their recent
posts.
2015-12-14 22:34:46 -08:00
Will Duff 5919cd1b31 Implement OAuth token re-authorization
Override the BlogClientBase.Login method with an OAuth2 login flow.
2015-12-14 20:29:11 -08:00
Martin Woodward d779d17238 Set default for Beta channel to be false 2015-12-14 17:03:45 +00:00
Martin Woodward 88f678c1a0 Remove some temp logic for update settings 2015-12-14 16:56:32 +00:00
Martin Woodward b6fb2b8013 Update Beta channel to ignore CDN 2015-12-14 16:51:28 +00:00
Will Duff 436f2a121b Add Google Blogger v3 Client
The Google Blogger v3 API doesn't use the Atom protocol, so I added a
new Google Blogger v3 client to handle the connection instead. I updated
the Google Blogger detector to use the new OAuth APIs when attempting to
detect a Google Blogger blog. I also had to change some logic around for
homepage URLs. The main difference in the Google Blogger flow is that
the homepage URL isn't known until after the credentials are authorized.
All other blogs require the user to type in the homepage URL manually
before authorization happens, so I had to change some logic for this to
work properly.
2015-12-14 01:08:58 -08:00
Will Duff 5fbc9ab8c0 Improve Google Blogger authentication flow
The 'Sign in' button now automatically disables itself and changes text
dynamically to help make sure users know when they need to click it,
made the authentication panel automatically click the 'Next' button on
behalf of the user when it detects valid user credentials. I also
changed the FileDataStore to store one OAuth2 token per blog rather than
create a new folder per blog.
2015-12-13 19:55:58 -08:00
Mark Downie cc39ee295e Folder Dialogue box fix
Folder dialogue fix, you now should be able to pick any folder on your
PC.
Improved formatting on the options page,
2015-12-13 22:03:26 -05:00
Will Duff d1fe288290 Change Google Blogger credential storage to use explicit FileDataStore
Most blog APIs take a simple username/password pair and our
IBlogCredentials are based around this concept. For OAuth, there is more
to store than just a simple username/password. The Google APIs already
provide an option to automatically handle the data storage for the
OAuth, so I'm using that instead.
2015-12-13 14:57:23 -08:00
Rhys Godfrey f62114a8ac Update Telligent Community Provider
Telligent Community hasn't been called "Community Server" since version
4.x. The metablog URL was updated in 8.x so the suggested URL when
picking "Community Server" no longer works.

- Updating the naming of "Community Server" to "Telligent Community"
- Adding new provider for "Telligent Community 8.0+" with updated URL
pattern and supporting in all markets
2015-12-13 22:26:50 +00:00
Will Duff 3796993b2c Move Blogger client ID and client secrets to JSON
Google asked us not to check in the client id and client secret into the
source. Instead, we'll generate a client_secrets.json at runtime based
on environment variables. Developers that want to build the source code
locally will need to supply their own client ID and client secret. For
the official Open Live Writer installer, we'll make sure the client ID
and client secret are set to the official Open Live Writer client.
2015-12-13 13:21:36 -08:00
Mark Downie bf0b36f1e7 Merge remote-tracking branch 'refs/remotes/OpenLiveWriter/master' into users/poppastring/blogpostfolder
# Conflicts:
#	src/managed/OpenLiveWriter.PostEditor/PostEditorPreferencesPanel.cs
2015-12-13 00:26:49 -05:00
Mark Downie 14ff60770c Made the "Drafts and Posts folder" configurable via the options page. It will take the current location of the "Drafts and Posts folder" location from the registry and make it part of the PostEditorSettings. After this it will always get the settings from PostEditor.
This should help resolve issue #29.
2015-12-12 23:18:00 -05:00
Tim Heuer b592bf4a46 Merge pull request #87 from timheuer/master
Fix #80 and #54
2015-12-12 19:02:59 -08:00
Calvin 890e0efe0b get rid of mail code too 2015-12-12 09:45:55 -04:00
Will Duff ad482780be Add Google Blogger configuration wizard panel
Adds a new radio button to specify a Google Blogger blog and a follow up
panel to prompt users to open the Google Blogger OAuth flow.
2015-12-12 02:38:43 -08:00
Will Duff bd34aecf68 Merge branch 'master' into google-blogger 2015-12-12 02:23:30 -08:00
Will Duff 90d5f5e226 Add NuGet dependency on Google.Apis.Blogger.v3 2015-12-11 17:28:47 -08:00
Brendan Forster 0e320c14d4 actually, let's keep the Setup suffix 2015-12-11 22:08:52 +10:30
Brendan Forster b7a5b4627c rename the installer file to be more descriptive 2015-12-11 21:56:12 +10:30
Tim Heuer e7ca71e5b2 Fix #80 by fixing the provider XML list to look at correct version number for OLW instead of WLW last version 2015-12-10 22:09:00 -08:00
Loren Van Spronsen 2c3d8f93d6 Change some custom collections to inherit from List<T> to avoid duplicating the same logic over and over again 2015-12-10 19:59:14 -08:00
Gary Ewan Park 8d331c14ed (GH-57) Adding basic creation of Chocolatey Package
- At the minute, this only takes care of the installation, need to
consider what is required for uninstallation.
2015-12-10 20:52:07 +00:00
Martin Woodward c80bee8119 Don't call Brian 2015-12-10 19:06:07 +00:00
Martin Woodward 3e96fe5153 Add NuGet Packages into AboutForm 2015-12-10 18:49:12 +00:00
Will Duff 5ae202b184 Merge pull request #41 from timsneath/postinstall-fix
Be more tolerant of dev workstation environment
2015-12-10 09:42:27 -08:00
Lucas Araujo d80ae9563e Small adjustment in Tab Index of the Connection Wizard for SharePoint 2015-12-10 08:10:41 -02:00
Lucas Araujo 2d1170cf57 Small adjustment in Tab Index of the Connection Wizard for SharePoint 2015-12-10 08:08:51 -02:00
Brian Lambert 1236b0393f Removing my name and some spelling errors. Nothing substantial. 2015-12-09 23:10:55 -05:00
Kirill Osenkov 1b898bd57e Merge branch 'master' into tabsspaces 2015-12-09 17:11:10 -08:00
Will Duff 6f6426e5e8 Merge pull request #52 from timheuer/master
Fix #49 - Fix permissions argument for LiveJournal API
2015-12-09 17:06:59 -08:00
Kirill Osenkov ed4b8936c0 Replace tabs with spaces and fix more of remaining whitespace issues. 2015-12-09 17:06:57 -08:00
Tim Heuer 9639e2fb7e Fix #49 as LiveJournal API returning invalid arg for "0" value on Gallery security setting. Changed to 255 (public) per documentation 2015-12-09 16:09:36 -08:00
Kirill Osenkov 0fa127828a Remove trailing whitespace and consecutive empty lines. 2015-12-09 15:59:31 -08:00
Kirill Osenkov c232dc943f Formatting all source files 2015-12-09 14:17:51 -08:00
Tim Sneath 38ac21a66f Be more tolerant of dev workstation environment
Fix postinstaller to be more tolerant: (i) Use quote marks to ensure spaces in the user profile directory (e.g. C:\Users\Tim Sneath) don't break the batch file; (ii) fail more gently if Nuget.exe isn't in the %localappdata% directory, since it's not installed by default with Visual Studio.
2015-12-09 13:00:44 -08:00
Will Duff 00ec9e80e0 Initial commit 2015-12-09 02:38:46 -08:00