wordpress-mobile / wordpress-mobile/WordPress-Android

Post scheduled in far future (year 4139) on self hosted

Open
#11,220 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Bug Posting/Editing
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

A user intended to publish a post on a self hosted site without Jetpack. The post was published in the future (Year 4139).

Screenshot_20200131-211826

User might have tried to fetch revision history, which should be disabled on self hosted (no endpoint). Notice the call to wpcom endpoints and the site_id in the logs:

30 - [Jan-31 20:19 API] Volley error on https://public-api.wordpress.com/rest/v1.1/sites/0/post/4530/diffs/?locale=de_AT - exception: null 31 - [Jan-31 20:19 API] 
StackTrace: 
com.android.volley.ClientError at 
com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:199) at 
com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:131) at 
com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111) at 
com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90) 32 - [Jan-31 20:19 API] 

Dispatching action: PostAction-FETCHED_REVISIONS 33 - [Jan-31 20:19 API] Volley error on https://public-api.wordpress.com/rest/v1.1/sites/0/post/4530/diffs/?locale=de_AT - exception: null 34 - [Jan-31 20:19 API] 
StackTrace: 
com.android.volley.ClientError at 
com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:199) at 
com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:131) at 
com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111) at 
com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the self-hosted post scheduling flow alongside the logged revision-history request to the WordPress.com diffs endpoint with site_id 0. Reproduce the far-future publication case and determine the expected behavior for revision fetching on self-hosted sites; done means the post is not scheduled for year 4139 and the invalid endpoint request is avoided.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.