Bug 1011856

Summary: Create Repository fails without usefull error message
Product: [Community] Spacewalk Reporter: Jens Neu <jens>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.9CC: jens
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-04 13:08:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1069560    

Description Jens Neu 2013-09-25 09:06:10 UTC
Description of problem:
When trying to create a yum repository with more than 64 chars in Label, the WebUi gives the missleading:
---
Repository created successfully

Internal Server Error

The server experienced a problem which prevented your request from being filled out. It may not be possible to execute this action at this time.

Please help us correct this problem by contacting us with details of how you received this message.
---

In /var/log/tomcat6/catalina.out the real reason is visible:

Caused by: java.sql.SQLException: ORA-12899: value too large for column "SPACEWALK"."RHNCONTENTSOURCE"."LABEL" (actual: 70, maximum: 64)

Version-Release number of selected component (if applicable):
detected in: spacewalk-oracle.noarch 1.9.2-1.el6, probably applicable to all versions

How reproducible:
always

Steps to Reproduce:
1. Create repo with Label >64 characters
2. see /var/log/tomcat6/catalina.out
3.

Actual results:
Repository is not beeing added despite the WebUI tells "created successfully" plus giving no useful error message.

Expected results:
WebUI should prevent entering more than 64 characters OR error message should state that Label is too long

Comment 1 Tomas Lestach 2013-10-24 15:35:23 UTC
spacewalk.git: ee753d84dab712ca9615eef07f72cf1ee54ebced

Comment 2 Matej Kollar 2014-01-17 12:15:54 UTC
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.

Comment 3 Matej Kollar 2014-03-04 13:08:09 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21

Comment 4 Matej Kollar 2014-03-04 13:09:02 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21