IE 11 certified with Webcenter portal now

Oracle has now certified IE11 (Internet Explorer 11) for WebCenter Portal 11.1.1.7.x and 11.1.1.8.x. You need to implement patch up to 11.1.1.8 with the latest Bundle Patch – kindly refer to Note 1087226.1

.

Error the end users will see, in IE11 (within a popup):

You are using an unsupported browser. The supported browsers are Internet Explorer 7 and higher, Firefox 2.0.0.2 and higher, Safari 3.1.2 and higher, and Google Chrome 1.0 or higher.

Example of the popup screen:

Unsupported Browser

In summary, there are a number of differences between Microsoft IE 11 and former versions, where one that makes more difference is the change of the User-Agent header string

Adding user in specific Space in Webcenter

Small tip – To add user in space with some specified or custom role

Solution -If you are using PS6, this code will help you doing that.

    public void addMemberInSpace(String SpaceName, String userid) throws GroupSpaceWSException {
        
      
        logger.fine("Entering AddMember");
        try {
            GroupSpaceWSClient Gsclient = new GroupSpaceWSClient(contextData);

            String userRole = "CustomRole"; // You can define default role as admin, viewer, Moderator or some custom role as well
            GroupSpaceWSMembers memberData = new GroupSpaceWSMembers(userid, userRole);
            
            //Approval code will be added
            List<GroupSpaceWSMembers> addMem = new ArrayList<GroupSpaceWSMembers>();
            addMem.add(memberData);
            Gsclient.addMember(SpaceName, addMem);
            
        } catch (oracle.webcenter.spaces.ws.client.GroupSpaceWSException gsException) {
          
            throw gsException;
        } catch (Exception exception) {
          
            throw new GroupSpaceWSException("Exception caught during addMembership ", null, null, exception, null);
        }
       
    }

 

Happy Coding with techartifact….

Increase file upload size in webcenter spaces application

Requirement – To increase the maximum file upload size in WebCenter Spaces
Implementation – In my spaces application, we are not able to upload file size more than 2 MB. Requirement to upload upto 20MB. WebCenter Spaces PS4 should be setup to allow uploads up to 2Gb.After digging a littler found this

Those are the steps to change the default “max-filesize” to your requirement.For this you need to export metadata for application.Check out my previous blog entry on Change metadata in MDS/ Metadata command for weblogic.

->Find webcenter wlst.sh or wlst.cmd and runit.
->Connect to admin server with this command:

connect(‘weblogic’,’pwd’,’t3://:7001′)

->Now export the metadata that defines the “uploadedFileMaxDiskSpace” parameter.

exportMetadata(application=’webcenter’,server=’WC_Spaces’,toLocation=’/home/oracle’,
docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

-> Modify the file “webcenter-config.xml” and locate the line with this parameter.

20480

-> Save the file and proceed to the upload, reconnect to wlst.sh and Connect again to admin server

connect(‘weblogic’,’pwd’,’t3://:7001′)

-> Execute the upload command:

importMetadata(application=’webcenter’,server=’WC_Spaces’,fromLocation=’/home/oracle’,
docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

-> Restart WC_Spaces managed server .

That’s it.Now you can upload upto 20 MB. Change the requirement according to your specification.

Happy learning with Vinay in techartifact.