Filename validation

Hi,
i have to check the filename in the selection screen.
parameters: p_file type char50.
now if the user enters only the filename without any extension then i have to add .XLS as its extension.
lets say if user had entered filname as TEST , to this i have to add .XLS which would be very easy just by concatnating .xls to TEST. but what if the user enters .XLS .
how do i check that thing?

See the following sample code.
data: name(45),
      ext(4).
parameters: p_file(50).
start-of-selection.
if not p_file is initial.
split p_file at '.' into name ext.
if sy-subrc = 0.
if ext ne 'XLS'.
   concatenate name '.'  'XLS' into p_file.
endif.
endif.
endif.

Similar Messages

  • XI file sender: filename validation to stop processing a file twice

    Hello folks,
    I have a file sender adapter for a text file with name convention that includes a date - e.g. orders_YYYYMMDD.txt. We have a business requirement to ensure that we don't post the same file more than once. The file can be huge, so it's not really an option to pick up the file contents in one message.
    Options I have tried:
    - I do not know of a setting in the file adapter to achieve this.
    - write a perl script to read the filename and translate [hex-encode] this into a Message GUID, then post the file via HTTP adapter
      - - if the file name is not too long (guid is 32 hex chars) this method works well for small files that are in XML format.
      - - Text files need too much perl coding to translate to XML. Large files that need to be split will fail on the 2nd chunk.
    Options I don't want to use:
    - Use BPM to call an RFC/Proxy that validates the filename - this will cause me to read the whole file, or I have to implement a 'pipe' in BPM to ensure EOIO processing. (We have this elsewhere, but it's not good for performance)
    - Actually, I don't want to manage this in ABAP/Ztables at all if possible.
    I am about to start work on a Module Processor to mangle the GIUD in the file adapter, similar to the HTTP method above (don't have any idea of whether this will be possible yet)...
    Can anyone recommend another method to achieve this?

    Hi Derek,
    Intially when the file is picked then archive it to another directory.
    with this the same file will not be processed twice.
    Rgds,
    Kumar

  • To upload the ZIP file and get the filenames available in ZIP file in ABAP

    Hi Experts,
    For my requirement, file from legacy comes as ZIP file with number of files in that.
    Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.
    Thanks in Advance,
    Regards,
    Basani

    1. Copy the ZIP file into App server
    2. Call function
      call function 'RFC_REMOTE_PIPE'
        destination 'SERVER_EXEC'
        exporting
          command = command  " Unzip command gunzip /path & file
          read = 'X'
        tables
          pipedata = std_lines
    then you can read the files and can validate the file names

  • PDF Download Problem

    Hi,
    I have one report using Reuse_Alv_List_Display as output. After that I have to download the output to PDF.
    By using the following code I can able to download, But the Problem is I have 54 fields( total length to 900 characters) in the out put and while downloading through Spool I am getting only 17 fields in one row and remaining fields are getting in 2nd and 3rd rows and are getting overlap.
    So is there any Possibility to download to 54 Fields in PDF.If so, Please help me...
    *&      Form  USER_COMMAND
          Form for user-command for providing Pdf Functionlity.
    -->  No Import / Export Parameters.
    FORM user_command USING l_okcode LIKE sy-ucomm
                           l_selfield TYPE slis_selfield .
      CASE l_okcode.
        WHEN '&PDF'.
          g_flag = 'X'.
          PERFORM pdf_download.
      ENDCASE.
    ENDFORM.                    " USER_COMMAND
    *&      Form  PDF_DOWNLOAD
          Form for Pdf functionalty
    -->  No Import / Export Parameters
    FORM pdf_download .
      DATA l_spoolid TYPE tsp01-rqident.
    Without archiving
      DATA: params LIKE pri_params,
      days(1) TYPE n VALUE 2,
      count(3) TYPE n VALUE 1, p_file TYPE rlgrap-filename,
      valid TYPE c.
      CLEAR l_spoolid.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = 'LOCA'
          copies         = count
          list_name      = 'TEST'
          list_text      = 'SUBMIT ... TO SAP-SPOOL'
          immediately    = 'X'
          release        = 'X'
          new_list_id    = 'X'
          expiration     = days
          line_size      = 132
          line_count     = 25
          layout         = 'X'
          sap_cover_page = 'X'
          cover_page     = 'X'
          receiver       = 'SAP*'
          department     = 'System'
          no_dialog      = ' '
        IMPORTING
          out_parameters = params
          valid          = valid.
      IF valid <> space.
        EXPORT g_flag TO MEMORY ID 'M1'.
        SUBMIT z_fi_exec_customercollection WITH s_kunnr IN s_kunnr
                                    WITH s_bukrs IN s_bukrs
                                    WITH s_budat IN s_budat
                                         TO SAP-SPOOL
        SPOOL PARAMETERS params
        WITHOUT SPOOL DYNPRO
        AND RETURN.
      ENDIF.
      DATA: lt_spooltab TYPE STANDARD TABLE OF  rsporq WITH HEADER LINE ,
        lc_rq2name LIKE tsp01-rq2name.
      CONCATENATE sy-repid+0(8)
                    sy-uname+0(3)
          INTO lc_rq2name SEPARATED BY '_'.
      CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
        EXPORTING
          rq2name       = lc_rq2name
          rqowner       = sy-uname
        TABLES
          spoolrequests = lt_spooltab
        EXCEPTIONS
          no_permission = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        WRITE:/ 'Error in Find Spool request '.
      ENDIF.
      SORT lt_spooltab DESCENDING BY rqcretime.
      READ TABLE lt_spooltab INDEX 1.
      l_spoolid = lt_spooltab-rqident.
      SUBMIT rstxpdft4 WITH spoolno EQ l_spoolid
                       WITH download EQ 'X'
                       WITH  p_file EQ p_file
                       AND RETURN.
    ENDFORM.                    " PDF_DOWNLOAD
    *&      Form  SET_PF_STATUS
          Setting Modified Pf-Status to our program.
    -->  No Import / Export Parameters.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTANDARD_ALV_C'.
    ENDFORM.                    " SET_PF_STATUS

    Hi,
    I dont know the possibility but we can do some thing by using the hirarchial list display, reduce the field lengths where ever is unnecessary you will get it.
    Regards,
    venkat appikonda.

  • Insert,update and delete commands

    hi everybody,
    how can i make a button that runs a specific insert update and delete commands
    i am using adf faces jdeveloper 11.1.1.2.0
    than you for all

    thank you guys for your interest what i need in my button click is to take some values from outputtext controls and execute an insert command according to these values what i have done is make a stored procedure and make a client interface function to my amImpl class and i have called getDBTransaction().executeCommand(command); it runs well when i didn't enter values in outputtext controls and it throws an exception when i put the values
    the exception is javax.servlet.ServletException: Unable to resolve a Validator instance using either validatorId '' or binding '#{bindings.FileName.validator}'.
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.convert.ConverterException: Unable to resolve a Validator instance using either validatorId '' or binding '#{bindings.FileName.validator}'.
         at com.sun.faces.taglib.jsf_core.ValidatorTag$BindingValidator.validate(ValidatorTag.java:168)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:345)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
         at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:503)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$101(ContextSwitchingComponent.java:39)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$3.run(ContextSwitchingComponent.java:122)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processValidators(ContextSwitchingComponent.java:125)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$101(ContextSwitchingComponent.java:39)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$3.run(ContextSwitchingComponent.java:122)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processValidators(ContextSwitchingComponent.java:125)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1203)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 42 more
    thank you for help

  • SubVI data

    I open a VI in one of the subpanels in my main VI. I need to enter a filename, valid pulse widths and nof commands in the subpanel VI. Using the filename entered in the subpanel, I should open the binary file and find the nof valid commands and their pulse widths and dispaly that in another subpanel . I don't know how to get these values from the subpanel VI and do mt job. Hope someone can help me.

    Hello srini,
    two answers:
    1) If you need your filename as indicators (for sending data through connector to an other vi) just make a indicator, connect that indicator with your text control and with connector terminal and finally hide that indicator (right-click on terminal in block diagram).
    2) Do I understand you right: you want to send the status of the OK-button also to a second vi (with the case structure in it)? See answer 1!
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Hidden.png ‏9 KB

  • MisMatch on Signatures

    Hi Folks!
    I am developing an application to sign digital documents, in order to get it, I am using BouncyCastle. My problem resides at the moment that i want to verify the signature String generated with CMSSignedDataGenerator.
    First Question:
    Do is correct that BouncyCastle(CMSSignedDataGenerator) generated different signature Strings from the same document and with a same signer (PrivateKey)?.
    Because i am getting different signature strings on the same document with the same signer (privatekey).
    Second question:
    When I try to verify with BouncyCastle the signature String, I get a successful verification.
    But when i try to verify the signature string with java.Security.Signature class, throws me a unsuccessful verification.
    Does anybody know the reason of this behavior?
    I hope that you can help me.
    Part of my code is:
    //Add a signer
    this.cmsSDG.addSigner(signer.getPrivateKey(), signer.getX509(), digestAlg);
                   CertStore certCRLsStore = CertStore.getInstance("Collection", new CollectionCertStoreParameters(signer.getCertificateChain()), "BC");
                   this.cmsSDG.addCertificatesAndCRLs(certCRLsStore);
    //Sign document
    CMSProcessableByteArray cmsPBA = new CMSProcessableByteArray(this.document);
    this.signedDocument = this.cmsSDG.generate(cmsPBA, true, "BC");
    //Verify with BC
    if(signerInfo.verify(cert.getPublicKey(), "BC")
                                  & signerInfo.verify(signer.getPublicKey(), "BC")){
                                       signValid = true;
    //Verify with java.Security.Signature
    Signature sig = Signature.getInstance("SHA1withRSA");
                 sig.initVerify(signer.getPublicKey());
                 sig.update(Utils.fileToByteArray(fileName));
                 valid = sig.verify(Base64.decode(signature));
    ...

    Hi Folks!
    I am developing an application to sign digital documents, in order to get it, I am using BouncyCastle. My problem resides at the moment that i want to verify the signature String generated with CMSSignedDataGenerator.
    First Question:
    Do is correct that BouncyCastle(CMSSignedDataGenerator) generated different signature Strings from the same document and with a same signer (PrivateKey)?.
    Because i am getting different signature strings on the same document with the same signer (privatekey).
    Second question:
    When I try to verify with BouncyCastle the signature String, I get a successful verification.
    But when i try to verify the signature string with java.Security.Signature class, throws me a unsuccessful verification.
    Does anybody know the reason of this behavior?
    I hope that you can help me.
    Part of my code is:
    //Add a signer
    this.cmsSDG.addSigner(signer.getPrivateKey(), signer.getX509(), digestAlg);
                   CertStore certCRLsStore = CertStore.getInstance("Collection", new CollectionCertStoreParameters(signer.getCertificateChain()), "BC");
                   this.cmsSDG.addCertificatesAndCRLs(certCRLsStore);
    //Sign document
    CMSProcessableByteArray cmsPBA = new CMSProcessableByteArray(this.document);
    this.signedDocument = this.cmsSDG.generate(cmsPBA, true, "BC");
    //Verify with BC
    if(signerInfo.verify(cert.getPublicKey(), "BC")
                                  & signerInfo.verify(signer.getPublicKey(), "BC")){
                                       signValid = true;
    //Verify with java.Security.Signature
    Signature sig = Signature.getInstance("SHA1withRSA");
                 sig.initVerify(signer.getPublicKey());
                 sig.update(Utils.fileToByteArray(fileName));
                 valid = sig.verify(Base64.decode(signature));
    ...

  • [RESOLVED] kdesudo problems building...

    I am trying to build kdesudo, and it is erroring out on me.... not sure what this error means, and was wondering if anyone has seen this and/or knows how to fix this.  Thanks in advance.
    [roberts@ghost ~]$ yaourt kdesudo
    1 aur/kdesudo 3.4.2.3-1 (119)
    A SUdo frontend for KDE
    2 aur/kdesudo-kde4 3.1-2 (Out of Date) (19)
    KdeSudo is a sudo frontend for KDE originaly developed by Robert
    Gruber, and now maintained by Kubuntu developers.
    3 aur/rootactions-servicemenu-kde4 2.5.0-1 (Out of Date) (66)
    allows admin users to perform several root only actions from
    dolphin via kdesu/kdesudo
    ==> Enter n° (separated by blanks, or a range) of packages to be installed
    ==> --------------------------------------------------------------------
    ==> 1
    ==> Downloading kdesudo PKGBUILD from AUR...
    bsdtar: Removing leading '/' from member names
    x PKGBUILD
    Comment by: fettouhi on Mon, 16 Aug 2010 15:15:36 +0000
    Then it's probably because of moving KDE 4.5.
    Comment by: amirs on Mon, 16 Aug 2010 15:30:09 +0000
    it seems that Ubuntu had a similar problem but i couldn't find out how they fixed it:
    https://bugs.launchpad.net/ubuntu/+source/kdesudo/+bug/600202
    Comment by: Xavion on Wed, 18 Aug 2010 10:04:15 +0000
    You might wanna email the author of KdeSudo directly. I won't be upgrading to KDE v4.5 until it's moved into 'extra'.
    Comment by: kite on Thu, 19 Aug 2010 23:01:57 +0000
    In Ubuntu they fixed this bug a month ago - they are applying simple patch (drop_doc.patch) which comment out ADD_SUBDIRECTORY(en). And I don't know why you don't want to do in the same way.
    Comment by: Xavion on Sat, 21 Aug 2010 00:31:09 +0000
    I've added a configuration option to the PKGBUILD, which should take care of this problem. You will need to enable it manually for now, because this package still builds correctly without it here.
    Comment by: amirs on Sat, 21 Aug 2010 04:13:53 +0000
    works, thank you.
    First Submitted: Fri, 21 Dec 2007 03:13:26 +0000
    kdesudo 3.4.2.3-1 : A SUdo frontend for KDE
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> kdesudo dependencies:
    - kdelibs (already installed)
    - sudo (already installed)
    - cmake (already installed)
    - automoc4 (already installed)
    ==> Continue building kdesudo ? [Y/n]
    ==> ---------------------------------
    ==>
    ==> Building and installing package
    ==> Making package: kdesudo 3.4.2.3-1 (Fri Sep 24 20:36:00 HST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading kdesudo-3.4.2.3.tar.gz...
    --2010-09-24 20:36:00-- http://launchpad.net/kdesudo/3.x/3.4.2.3/+download/kdesudo-3.4.2.3.tar.gz
    Resolving launchpad.net... 91.189.89.222
    Connecting to launchpad.net|91.189.89.222|:80... connected.
    HTTP request sent, awaiting response... 303 See Other
    Location: http://launchpadlibrarian.net/38452901/kdesudo-3.4.2.3.tar.gz [following]
    --2010-09-24 20:36:00-- http://launchpadlibrarian.net/38452901/kdesudo-3.4.2.3.tar.gz
    Resolving launchpadlibrarian.net... 91.189.89.228
    Connecting to launchpadlibrarian.net|91.189.89.228|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 55414 (54K) [application/x-tar]
    Saving to: "kdesudo-3.4.2.3.tar.gz.part"
    100%[==============================>] 55,414 60.8K/s in 0.9s
    2010-09-24 20:36:02 (60.8 KB/s) - "kdesudo-3.4.2.3.tar.gz.part" saved [55414/55414]
    ==> Validating source files with sha1sums...
    kdesudo-3.4.2.3.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting kdesudo-3.4.2.3.tar.gz with bsdtar
    ==> Entering fakeroot environment...
    ==> Starting build()...
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Looking for Q_WS_X11
    -- Looking for Q_WS_X11 - found
    -- Looking for Q_WS_WIN
    -- Looking for Q_WS_WIN - not found.
    -- Looking for Q_WS_QWS
    -- Looking for Q_WS_QWS - not found.
    -- Looking for Q_WS_MAC
    -- Looking for Q_WS_MAC - not found.
    -- Found Qt-Version 4.6.3 (using /usr/bin/qmake)
    -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
    -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
    -- Looking for gethostbyname
    -- Looking for gethostbyname - found
    -- Looking for connect
    -- Looking for connect - found
    -- Looking for remove
    -- Looking for remove - found
    -- Looking for shmat
    -- Looking for shmat - found
    -- Looking for IceConnectionNumber in ICE
    -- Looking for IceConnectionNumber in ICE - found
    -- Found X11: /usr/lib/libX11.so
    -- Looking for include files CMAKE_HAVE_PTHREAD_H
    -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found OpenSSL: /usr/lib/libssl.so
    -- Looking for _POSIX_TIMERS
    -- Looking for _POSIX_TIMERS - found
    -- Found Automoc4: /usr/bin/automoc4
    -- Found Perl: /usr/bin/perl
    -- Found Phonon: /usr/include (found version "4.4.2", required is "4.3.80")
    -- Performing Test _OFFT_IS_64BIT
    -- Performing Test _OFFT_IS_64BIT - Success
    -- Performing Test HAVE_FPIE_SUPPORT
    -- Performing Test HAVE_FPIE_SUPPORT - Success
    -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
    -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
    -- Performing Test __KDE_HAVE_GCC_VISIBILITY
    -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
    -- Found KDE 4.5 include dir: /usr/include
    -- Found KDE 4.5 library dir: /usr/lib
    -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
    -- Found automoc4: /usr/bin/automoc4
    -- Looking for dgettext
    -- Looking for dgettext - found
    -- Found Gettext: built in libc
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/yaourt-tmp-roberts/aur-kdesudo/src/kdesudo-3.4.2.3
    Scanning dependencies of target kdesudo_automoc
    Generating moc_kdesudo.cpp
    [ 0%] Built target kdesudo_automoc
    Scanning dependencies of target kdesudo
    [ 2%] Building CXX object kdesudo/CMakeFiles/kdesudo.dir/kdesudo_automoc.o
    [ 4%] Building CXX object kdesudo/CMakeFiles/kdesudo.dir/main.o
    [ 6%] Building CXX object kdesudo/CMakeFiles/kdesudo.dir/kdesudo.o
    [ 8%] Building CXX object kdesudo/CMakeFiles/kdesudo.dir/kcookie.o
    Linking CXX executable kdesudo
    [ 8%] Built target kdesudo
    Scanning dependencies of target en-handbook
    [ 8%] Generating index.cache.bz2
    index.docbook:8: warning: failed to load external entity "dtd/kdex.dtd"
    ]>
    ^
    index.docbook:10: parser error : Entity 'language' not defined
    <book lang="&language;">
    ^
    index.docbook:10: element book: validity error : No declaration for attribute lang of element book
    <book lang="&language;">
    ^
    index.docbook:13: element application: validity error : No declaration for element application
    <title>The &kdesudo; handbook</title>
    ^
    index.docbook:13: element title: validity error : No declaration for element title
    <title>The &kdesudo; handbook</title>
    ^
    index.docbook:17: element firstname: validity error : No declaration for element firstname
    <firstname>Robert</firstname>
    ^
    index.docbook:18: element surname: validity error : No declaration for element surname
    <surname>Gruber</surname>
    ^
    index.docbook:20: element email: validity error : No declaration for element email
    <address><email>[email protected]</email></address>
    ^
    index.docbook:20: element address: validity error : No declaration for element address
    <address><email>[email protected]</email></address>
    ^
    index.docbook:21: element affiliation: validity error : No declaration for element affiliation
    </affiliation>
    ^
    index.docbook:22: element author: validity error : No declaration for element author
    </author>
    ^
    index.docbook:24: element authorgroup: validity error : No declaration for element authorgroup
    </authorgroup>
    ^
    index.docbook:27: element year: validity error : No declaration for element year
    <year>2003</year>
    ^
    index.docbook:28: element holder: validity error : No declaration for element holder
    <holder>Robert Gruber</holder>
    ^
    index.docbook:29: element copyright: validity error : No declaration for element copyright
    </copyright>
    ^
    index.docbook:31: parser error : Entity 'FDLNotice' not defined
    <legalnotice>&FDLNotice;</legalnotice>
    ^
    index.docbook:31: element legalnotice: validity error : No declaration for element legalnotice
    <legalnotice>&FDLNotice;</legalnotice>
    ^
    index.docbook:33: element date: validity error : No declaration for element date
    <date>2002-03-29</date>
    ^
    index.docbook:34: element releaseinfo: validity error : No declaration for element releaseinfo
    <releaseinfo>1.00.00</releaseinfo>
    ^
    index.docbook:38: element command: validity error : No declaration for element command
    <command>sudo</command> command.</para></abstract>
    ^
    index.docbook:38: element para: validity error : No declaration for element para
    <command>sudo</command> command.</para></abstract>
    ^
    index.docbook:38: element abstract: validity error : No declaration for element abstract
    <command>sudo</command> command.</para></abstract>
    ^
    index.docbook:41: element keyword: validity error : No declaration for element keyword
    <keyword>KDE</keyword>
    ^
    index.docbook:42: element keyword: validity error : No declaration for element keyword
    <keyword>sudo</keyword>
    ^
    index.docbook:43: element keyword: validity error : No declaration for element keyword
    <keyword>password</keyword>
    ^
    index.docbook:44: element keyword: validity error : No declaration for element keyword
    <keyword>root</keyword>
    ^
    index.docbook:45: element keywordset: validity error : No declaration for element keywordset
    </keywordset>
    ^
    index.docbook:47: element bookinfo: validity error : No declaration for element bookinfo
    </bookinfo>
    ^
    index.docbook:49: element chapter: validity error : No declaration for attribute id of element chapter
    <chapter id="introduction">
    ^
    index.docbook:50: element title: validity error : No declaration for element title
    <title>Introduction</title>
    ^
    index.docbook:53: element command: validity error : No declaration for element command
    <command>su</command> command for the K Desktop Environment.
    ^
    index.docbook:56: element command: validity error : No declaration for element command
    the system's <command>sudo</command> command.</para>
    ^
    index.docbook:56: element para: validity error : No declaration for element para
    the system's <command>sudo</command> command.</para>
    ^
    index.docbook:59: element filename: validity error : No declaration for element filename
    from <filename>.desktop</filename> files.</para>
    ^
    index.docbook:59: element para: validity error : No declaration for element para
    from <filename>.desktop</filename> files.</para>
    ^
    index.docbook:61: element chapter: validity error : No declaration for element chapter
    </chapter>
    ^
    index.docbook:63: element chapter: validity error : No declaration for attribute id of element chapter
    <chapter id="using-kdesu">
    ^
    index.docbook:64: element title: validity error : No declaration for element title
    <title>Using &kdesudo;</title>
    ^
    index.docbook:66: element para: validity error : No declaration for element para
    <para>Usage of &kdesudo; is easy. The syntax is like this:</para>
    ^
    index.docbook:69: element command: validity error : No declaration for element command
    <command>kdesudo</command>
    ^
    index.docbook:70: element replaceable: validity error : No declaration for element replaceable
    <arg>-u <replaceable>RUNAS</replaceable></arg>
    ^
    index.docbook:70: element arg: validity error : No declaration for element arg
    <arg>-u <replaceable>RUNAS</replaceable></arg>
    ^
    index.docbook:71: element arg: validity error : No declaration for element arg
    <arg>COMMAND</arg>
    ^
    index.docbook:72: element cmdsynopsis: validity error : No declaration for element cmdsynopsis
    </cmdsynopsis>
    ^
    index.docbook:74: element para: validity error : No declaration for element para
    <para>The command line options are explained below.</para>
    ^
    index.docbook:79: element option: validity error : No declaration for element option
    <term><option>COMMAND</option></term>
    ^
    index.docbook:79: element term: validity error : No declaration for element term
    <term><option>COMMAND</option></term>
    ^
    index.docbook:80: element command: validity error : No declaration for element command
    <listitem><para>This is the command that <command>sudo</command> will execute.</
    ^
    index.docbook:80: element para: validity error : No declaration for element para
    item><para>This is the command that <command>sudo</command> will execute.</para>
    ^
    index.docbook:80: element listitem: validity error : No declaration for element listitem
    >This is the command that <command>sudo</command> will execute.</para></listitem
    ^
    index.docbook:81: element varlistentry: validity error : No declaration for element varlistentry
    </varlistentry>
    ^
    index.docbook:84: element replaceable: validity error : No declaration for element replaceable
    <term><option>-u <replaceable>RUNAS</replaceable></option></term>
    ^
    index.docbook:84: element option: validity error : No declaration for element option
    <term><option>-u <replaceable>RUNAS</replaceable></option></term>
    ^
    index.docbook:84: element term: validity error : No declaration for element term
    <term><option>-u <replaceable>RUNAS</replaceable></option></term>
    ^
    index.docbook:86: element para: validity error : No declaration for element para
    is specified at RUNAS</para></listitem>
    ^
    index.docbook:86: element listitem: validity error : No declaration for element listitem
    is specified at RUNAS</para></listitem>
    ^
    index.docbook:87: element varlistentry: validity error : No declaration for element varlistentry
    </varlistentry>
    ^
    index.docbook:89: element variablelist: validity error : No declaration for element variablelist
    </variablelist>
    ^
    index.docbook:91: element chapter: validity error : No declaration for element chapter
    </chapter>
    ^
    index.docbook:93: element chapter: validity error : No declaration for attribute id of element chapter
    <chapter id="Author">
    ^
    index.docbook:94: element title: validity error : No declaration for element title
    <title>Author</title>
    ^
    index.docbook:96: element para: validity error : No declaration for element para
    <para>&kdesudo;</para>
    ^
    index.docbook:98: element para: validity error : No declaration for element para
    <para>Copyright 2003 Robert Gruber</para>
    ^
    index.docbook:101: element email: validity error : No declaration for element email
    <email>[email protected]</email>. Please report any bugs you
    ^
    index.docbook:103: element para: validity error : No declaration for element para
    to contact me.</para>
    ^
    index.docbook:105: parser error : Entity 'underFDL' not defined
    &underFDL;
    ^
    index.docbook:106: parser error : Entity 'underGPL' not defined
    &underGPL;
    ^
    index.docbook:108: element chapter: validity error : No declaration for element chapter
    </chapter>
    ^
    index.docbook:110: element appendix: validity error : No declaration for attribute id of element appendix
    <appendix id="installation">
    ^
    index.docbook:111: element title: validity error : No declaration for element title
    <title>Installation</title>
    ^
    index.docbook:113: element sect1: validity error : No declaration for attribute id of element sect1
    <sect1 id="downloading">
    ^
    index.docbook:114: element title: validity error : No declaration for element title
    <title>Downloading</title>
    ^
    index.docbook:116: parser error : Entity 'install.intro.documentation' not defined
    &install.intro.documentation;
    ^
    index.docbook:118: element sect1: validity error : No declaration for element sect1
    </sect1>
    ^
    index.docbook:120: element sect1: validity error : No declaration for attribute id of element sect1
    <sect1 id="compiling">
    ^
    index.docbook:121: element title: validity error : No declaration for element title
    <title>Compiling</title>
    ^
    index.docbook:123: parser error : Entity 'install.compile.documentation' not defined
    &install.compile.documentation;
    ^
    index.docbook:125: element sect1: validity error : No declaration for element sect1
    </sect1>
    ^
    index.docbook:126: element appendix: validity error : No declaration for element appendix
    </appendix>
    ^
    index.docbook:128: element book: validity error : No declaration for element book
    </book>
    ^
    make[2]: *** [doc/en/index.cache.bz2] Error 1
    make[1]: *** [doc/en/CMakeFiles/en-handbook.dir/all] Error 2
    make: *** [all] Error 2
    Aborting...
    ==> ERROR: Makepkg was unable to build kdesudo.
    ==> Restart building kdesudo ? [y/N]
    ==> --------------------------------
    ==>
    Last edited by Zer01ne (2010-09-25 18:23:22)

    Have you read the comments? https://bugs.launchpad.net/ubuntu/+sour … bug/600202
    You need to uncomment the line that starts with 'sed':
    # Config
    #sed -i "s|ADD_SUBDIRECTORY(en)|#ADD_SUBDIRECTORY(en)|g" doc/CMakeLists.txt || return 1
    save the PKGBUILD and try to compile kdesudo again using this PKGBUILD.
    Last edited by karol (2010-09-25 07:38:42)

  • The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web

    Hi All,
    We have a form library with around 2000 InfoPath forms submitted successfully, but suddenly from the couple of weeks noticing that, the users are able to submit the form successfully without
    any issues but the referenced .xml file is physically not
    getting saved and the strange thing is it's reference(i.e. xml) is available. When we try opening the form it gives below error.<o:p></o:p>
    “InfoPath cannot open the following file ‘formpath/.xml’
    ”<o:p></o:p>
    When we try viewing the version history, it gives below error:<o:p></o:p>
    "The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web"<o:p></o:p>
    I have also looked at the logs but not much information. Can someone help me?
    MercuryMan

    Hi,
    According to the error message, this issue is a typically database related issue.
    1. Make sure that your Content Database in SQL is not full.
    Open SQL management studio and connect to SQL server that have your content DB.
    You can find SQL server name from "manage servers in this farm".
    Right click the content database, click Reports > Standard Reports > Disk Usage to generate a standard report.
    For your reference:
    http://social.technet.microsoft.com/Forums/en-US/178095de-7fba-482c-9be1-94e60b1906e0/sharepoint-2010-error-the-url-item-url-is-invalid-it-may-refer-to-a-nonexistent-file-or
    2. According to KB 894631, this error message will be thrown out when the content database is configured to read-only.
    Go to Central Administration > Manage Content Databases and check if it is the case. Also, recycle the application pool in case the cache was corrupted.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"h

    HI!,
    I really need help on this. I have tried multiple installs but with no sucess. Below is the copy of my marvel.conf.
    Alias /i/ "D:\oracle\product\10.2.0\apex\Apache\Apache\images\"
    AddType text/xml xbl
    AddType text/x-component htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString localhost:1521:XXXX ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage apex
    PlsqlDatabasePassword apex
    Allow from all
    </Location>
    I tested login with sqlplus apex_public_user/apex and that works fine. The page comes up fine but the gif files are missing and this what what I see in the error log file.
    Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"1px_trans.gif
    Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"javascript
    I have added the include line in the http.conf pointing to the marvel.conf.
    I get the login prompt and thats it - cannot go ahead than that. Any help would be highly appreciated.
    Thanks
    Ketan

    omg ! where is this documented. I have uninstalled OH , reinstalled it 3 - 4 times.
    Infact I even dowloaded the apex zip file 2 times thinking something went wrong while downloading.
    That worked for me.. thanks a lot Maxim.

  • Error message " filename is not a valid Win32 application"

    I have StarOffice 8 update 11 on a PC running Windows XP. Every time I try to open any StarOffice file from my file manager, I get the error " <filename> is not a valid Win32 application." But I can open the file fine when I do it from within StarOffice, or straight from my email. I cannot figure out how to fix this so that I can launch a StarOffice file from my file manager. Any advice you can give would be greatly appreciated!
    Thanks!

    You can look for / identify missing or corrupted Operating System files by running the System File Checker Utility.
    Type sfc /scannow in the Run window, and press Enter.
    Also, a similar issue in OpenOffice was discussed here:
    http://www.oooforum.org/forum/viewtopic.phtml?t=11195&highlight=open+pps+explorer

  • Error submitting form for Distribution: "The filename you specified is not valid because it does not

    Error submitting form for Distribution:
    "The filename you specified is not valid because it does not include a .pdf extension, contains one or more invalid characters or teh path preceding it refers to a protected system location."
    Tried removing dashes from filename, shortenign filename, moving to root directory. No changes. File ends with a .pdf extension.
    This is my first attempt to distribute via acrobat.com

    I found that I got that same message using Acrobat Professional to send out a document for shared review.  I had an exclamation mark in the title of the PDF. When I took out the exclamation mark, it worked.
    So maybe try taking out anything "unusual" (parentheses, dashes, exclamation marks, etc.) in the file name and see if that helps.
    Good luck,
       Philip.

  • Validating numeric value in a filename

    I have a file and the filename  should be like ABC_12345_RES_20150410.txt and i have to validate the filename.I am facing problem in validating the numeric value which can change and its length also can change.
    I am using the following expression to validate whether its the numeric value /not:
    (DT_I4)(SUBSTRING( @[User::FileName]  ,FINDSTRING( @[User::FileName]  ,"_", 1)+1, FINDSTRING( @[User::FileName]  ,"_", 2)-FINDSTRING( @[User::FileName]  ,"_", 1)-1)) == (DT_I4)(SUBSTRING( @[User::FileName] 
    ,FINDSTRING( @[User::FileName]  ,"_", 1)+1, FINDSTRING( @[User::FileName]  ,"_", 2)-FINDSTRING( @[User::FileName]  ,"_", 1)-1))
    This statement is failing the package when i am entering a character instead of digit.. But i don't want the package to fail rather i just want to log the exception in this case.
    Is there any other way to validate the numeric Value?
    Many Thanks in Advance!

    Thanks a ton Martin for your advice.
    I can do that but Actually the conversion is failing.. its giving error that cannot convert to (DT_I8). M looking for any other  way to validate  the numeric value.

  • Get-ChildItem with -LiteralPath is throwing "The specified wildcard character pattern is not valid" when filenames contain brackets

    I'm trying to get a list of folders in a hierarchy that don't contain any mp3 files. (The goal here is to eventually clean up all the "empty" folders that only have album art, thumbs.db, desktop.ini, etc. files left). So I wrote a quick PowerShell
    command to try to do this. But it doesn't seem to be working.
    I already checked out this thread <Get-ChildItem
    SomeFile[].txt occurs error because of the [brackets]: "specified wildcard pattern not valid"> and I think I'm using LiteralPath correctly. Any other hints for troubleshooting this problem? Here's the command I'm using.
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    This is on the latest version of PowerShell found in Windows Technical Preview.

    Fair enough, but it still doesn't answer the original question- why isn't this working with -LiteralPath when the path contains brackets? 
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    Thanks,
    Ben

  • JFileChooser filename field validation...

    All,
    I am embedding a JFileChooser object into my own JPanel. I'm setting the chooser to select directories only. The problem is that when I call chooser.getSelectedFile() and the user has typed something into the filename field, I only get the file that is selected in the list instead of the file entered by hand. Is there anyway to find out when the user changes the text in the file name field? Or, is there a way to force the selection in the list to update itself from the entered file name field? I know that if the user presses ENTER while in the file name field, this happens. Could I fake that somehow?
    Thanks!

    Well thank you all for your responces. I agree that there needs to be a change in the API to allow us to apply the changes in the file name text field. A simple solution could be to give us a method like JFileChooser.setFilenameField(JTextComponent filenameField). If the method isn't called then everything acts as it did before. If called, then you're own text field is used. Maybe an even more simple solution could be to have just a JFileChooser.getFilenameField() that returns a JTextComponent. This method could return null on UIs that don't use a filename text field.
    Anyway, digging into the BasicUI as a work-around seems to be enough for my purposes, however, this is an "after the fact" solution that doesn't let me change my "Next >" button state. I do popup an error now and then disable the "Next >" button. The previous behavior would just continue on without the user knowing that the texted they entered wasn't used.
    Thanks for your help!

Maybe you are looking for