6.0.0-alpha12
6/7/25

[#12315] Disallow posting until Facebook text field has content
Summary Disallow posting until Facebook text field has content
Queue Horde Base
Queue Version 5.1.0
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester simon (at) simonandkate (dot) net
Created 06/07/2013 (4383 days ago)
Due
Updated 06/21/2013 (4369 days ago)
Assigned 06/08/2013 (4382 days ago)
Resolved 06/21/2013 (4369 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/21/2013 04:08:06 PM Michael Rubinsky Comment #7
State ⇒ Resolved
Reply to this comment
Horde 5.1.2
06/21/2013 04:06:58 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit d614c36bd57b7001cc1bd7e34b23c7447848172d
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Jun 21 11:57:29 2013 -0400

     Bug: 12315 Disallow empty Facebook posting.

  horde/js/facebookclient.js |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d614c36bd57b7001cc1bd7e34b23c7447848172d
06/09/2013 03:08:22 AM simon (at) simonandkate (dot) net Comment #5 Reply to this comment
OK, I worked it out.

When portal view loads, FB is slower, so it's loading a blank portal
block.
Not sure what you mean by this. Why is FB slower when you happen to 
load the portal page?
Takes about 5 to 10 seconds to load FB content after the portal page loads.

[Show Quoted Text - 14 lines]
Cool, so at last something that you can reproduce :)

Thanks!
06/08/2013 04:02:29 PM Michael Rubinsky Summary ⇒ Disallow posting until Facebook text field has content
 
06/08/2013 04:01:54 PM Michael Rubinsky Comment #4
State ⇒ Assigned
Reply to this comment
OK, I worked it out.

When portal view loads, FB is slower, so it's loading a blank portal block.
Not sure what you mean by this. Why is FB slower when you happen to 
load the portal page?
I clicked "Update" as I thought that was "update the display", not 
"Post an update to FaceBook" (perhaps a wording change needed for 
idiots like me?).
I named it to match the Facebook vernacular at the time. I.e., "Update 
your status." Perhaps "Post" would be better though.
Clicking update when there is no text in the text field generates this error.
Ah, ok. Now *that* I do see. At one time, we had the button disabled 
until there was text in the field - that must be a regression.

06/08/2013 08:14:25 AM simon (at) simonandkate (dot) net Comment #3 Reply to this comment
OK, I worked it out.

When portal view loads, FB is slower, so it's loading a blank portal 
block. I clicked "Update" as I thought that was "update the display", 
not "Post an update to FaceBook" (perhaps a wording change needed for 
idiots like me?).

Clicking update when there is no text in the text field generates this error.

Perhaps a more gentle catch of an error for an empty box needed?
06/07/2013 01:36:54 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Cannot reproduce.

The facebook block displays correctly for me when the portal page is 
loaded, and clicking "Update" to update my Facebook status results in 
my new status being posted to Facebook.
06/07/2013 09:38:49 AM Jan Schneider Assigned to Michael Rubinsky
State ⇒ Assigned
 
06/07/2013 02:46:08 AM simon (at) simonandkate (dot) net Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Facebook Portal block error
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Just upgraded to 5.1.0, and the facebook portal block shows as empty. 
When I click on Update it displays a lot of error messages, with some 
Facebook content below the errors. Errors are:

A fatal error has occurred
{"error":{"message":"(#100) Missing message or 
attachment","type":"OAuthException","code":100}}
1. Horde_Service_Facebook_Streams->post() 
/var/www/horde/services/facebook/index.php:228
2. Horde_Service_Facebook->callGraphApi() 
/usr/share/pear/Horde/Service/Facebook/Streams.php:128
3. Horde_Service_Facebook_Request_Graph->run() 
/usr/share/pear/Horde/Service/Facebook.php:210
Details
The full error message is logged in Horde's log file, and is shown 
below only to administrators. Non-administrative users will not see 
error details.
Horde_Service_Facebook_Exception Object
(
     [details] =>
     [logged] => 1
     [_logLevel:protected] => 0
     [message:protected] => {"error":{"message":"(#100) Missing 
message or attachment","type":"OAuthException","code":100}}
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => 
/usr/share/pear/Horde/Service/Facebook/Request/Graph.php
     [line:protected] => 139
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /usr/share/pear/Horde/Service/Facebook.php
                     [line] => 210
                     [function] => run
                     [class] => Horde_Service_Facebook_Request_Graph
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [1] => Array
                 (
                     [file] => 
/usr/share/pear/Horde/Service/Facebook/Streams.php
                     [line] => 128
                     [function] => callGraphApi
                     [class] => Horde_Service_Facebook
                     [type] => ->
                     [args] => Array
                         (
                             [0] => me/feed
                             [1] => Array
                                 (
                                     [message] =>
                                 )

                             [2] => Array
                                 (
                                     [request] => POST
                                 )

                         )

                 )

             [2] => Array
                 (
                     [file] => /var/www/horde/services/facebook/index.php
                     [line] => 228
                     [function] => post
                     [class] => Horde_Service_Facebook_Streams
                     [type] => ->
                     [args] => Array
                         (
                             [0] => me
                             [1] =>
                         )

                 )

         )

     [previous:Exception:private] =>
)
A fatal error has occurred
{"error":{"message":"(#100) Missing message or 
attachment","type":"OAuthException","code":100}}
1. Horde_Service_Facebook_Streams->post() 
/var/www/horde/services/facebook/index.php:228
2. Horde_Service_Facebook->callGraphApi() 
/usr/share/pear/Horde/Service/Facebook/Streams.php:128
3. Horde_Service_Facebook_Request_Graph->run() 
/usr/share/pear/Horde/Service/Facebook.php:210
Details
The full error message is logged in Horde's log file, and is shown 
below only to administrators. Non-administrative users will not see 
error details.
Horde_Service_Facebook_Exception Object
(
     [details] =>
     [logged] => 1
     [_logLevel:protected] => 0
     [message:protected] => {"error":{"message":"(#100) Missing 
message or attachment","type":"OAuthException","code":100}}
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => 
/usr/share/pear/Horde/Service/Facebook/Request/Graph.php
     [line:protected] => 139
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /usr/share/pear/Horde/Service/Facebook.php
                     [line] => 210
                     [function] => run
                     [class] => Horde_Service_Facebook_Request_Graph
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [1] => Array
                 (
                     [file] => 
/usr/share/pear/Horde/Service/Facebook/Streams.php
                     [line] => 128
                     [function] => callGraphApi
                     [class] => Horde_Service_Facebook
                     [type] => ->
                     [args] => Array
                         (
                             [0] => me/feed
                             [1] => Array
                                 (
                                     [message] =>
                                 )

                             [2] => Array
                                 (
                                     [request] => POST
                                 )

                         )

                 )

             [2] => Array
                 (
                     [file] => /var/www/horde/services/facebook/index.php
                     [line] => 228
                     [function] => post
                     [class] => Horde_Service_Facebook_Streams
                     [type] => ->
                     [args] => Array
                         (
                             [0] => me
                             [1] =>
                         )

                 )

         )

     [previous:Exception:private] =>
)

Saved Queries