Bug 820798 - RFE: enhanced error message when no server in csprocessor.ini
Summary: RFE: enhanced error message when no server in csprocessor.ini
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-11 01:54 UTC by Joshua Wulf
Modified: 2014-10-19 23:00 UTC (History)
2 users (show)

Fixed In Version: 0.24.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-07 01:30:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2012-05-11 01:54:52 UTC
Currently:

[jwulf@dhcp-1-77 FUDCon_Docs_Hack_Instruction_Manual]$ csprocessor push
CSProcessor client version: 0.23.2
Loading configuration from /home/jwulf/.config/csprocessor.ini
ERROR: No server is setup for the specified csprocessor.cfg server url.


Suggestion:

Perhaps include a little more guidance, and the server URL in the error message

ERROR: No credentials are configured for the specified csprocessor.cfg server url: http://docs.fedorareloaded.com:8080/TopicIndex/

Use the -u switch to provide a username for this server, or configure a server entry in ~/.config/csprocessor.ini





cspclient-0.23.2-1.noarch
OS: Fedora release 15 (Lovelock)

Comment 1 Lee Newson 2012-05-20 00:43:55 UTC
Added in 0.24.0.

However they shouldn't be using the -u option as a bypass for this. They should either specify the URL fully or make sure its setup in the csprocessor.ini. This provides a bit of a sanity check to make sure they are connecting to the server they want by manually entering the URL. It also maintains the current workflow which is: connecting one or twice use the full URL with the -H option otherwise set up the server in the csprocessor.ini.

The output now is:

CSProcessor client version: 0.24.0
Loading configuration from /home/lnewson/.config/csprocessor.ini

ERROR: No credentials are setup for the "http://localhost:8080/TopicIndex/" server specified in the csprocessor.cfg file. Please setup the server in your csprocessor.ini configuration file.

Comment 2 Lee Newson 2013-06-07 01:30:02 UTC
Closing and setting as current release as no QA was performed by the original reporter. If there is still an issue with this bug still than please re-open it.


Note You need to log in before you can comment on or make changes to this bug.