hub.verify not in spec anymore, still required by hub on subscribe

オープン
#2 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
api, backend

調査の方向性

class-pushpress.php の 49 行目から開始し、issue にリンクされている現在の WebSub 0.4 仕様とサブスクリプション処理を比較します。プラグインがサブスクリプションパラメータをどのように検証しているかを追跡し、hub.verify が存在しないことを理由に、最新のクライアントが HTTP 400 で拒否されなくなっていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I'm using flask_websub (https://readthedocs.org/projects/flask-websub/) as a subscriber for a wordpress multisite on which I've installed the pushpress plugin. Comparing websub drafts 0.3 (https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.3.html) and current 0.4 (https://www.w3.org/TR/websub/) it seems that parameter hub.verify is not required anymore at subscribe. The hub included in pushpress still looks for it (line 49 of https://github.com/Automattic/pushpress/blob/master/class-pushpress.php) returning 400 to any (up to date) client.
I'll probably hack my way around this client side to conform to current hub status, but the best option would still be updating the plugin's behavior.
I'm not very php savvy, but if someone's willing to hold my hand through a review and/or tests I could try a pull request.

主要言語
PHP
スター
15
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/pushpress のほかの issue

Automattic/pushpress の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。